|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.monitoring.notification.CoreNotificationHelper
public final class CoreNotificationHelper
This class is used to notify on events which are core based.
| Method Summary | |
|---|---|
static void |
notifyIfEssentialPropertyIsEmpty(Object essentialProperty,
String propertyName,
Object concernedBean)
Method to check if an essential property is not null. |
static void |
notifyIfEssentialPropertyIsEmpty(String essentialStringProperty,
String propertyName,
Object concernedBean)
Method to check if an essential property string is has text. |
static void |
notifyLackingEssentialProperty(String propertyName,
Object concernedBean)
Method to notify that an essential property of a bean is lacking. |
static void |
notifyMisconfiguration(String message)
Method to log that a misconfiguration has occurred. |
static void |
notifyMisconfiguration(String message,
Object... parameters)
Replaces place holders in the message with the values provided as parameters. |
static void |
notifyMisconfiguration(String message,
Throwable cause)
Logs the message and the Exception cause and translates it to a MisconfigurationRTException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void notifyLackingEssentialProperty(String propertyName,
Object concernedBean)
throws MisconfigurationRTException
MissconfigurationRTException will be thrown.
propertyName - Is the name of the lacking property.concernedBean - Is the bean where the property is missing.
MisconfigurationRTException - Will be thrown everytime.
public static void notifyIfEssentialPropertyIsEmpty(Object essentialProperty,
String propertyName,
Object concernedBean)
throws MisconfigurationRTException
null.
essentialProperty - Is the property which should not be null.propertyName - Is the name of the lacking property.concernedBean - Is the bean where the property is missing.
MisconfigurationRTException - If essential property is misconfigured.
public static void notifyIfEssentialPropertyIsEmpty(String essentialStringProperty,
String propertyName,
Object concernedBean)
throws MisconfigurationRTException
essentialStringProperty - Is the property which should have text.propertyName - Is the name of the lacking property.concernedBean - Is the bean where the property is missing.
MisconfigurationRTException - If essential property is misconfigured.StringUtils.hasText(java.lang.String)
public static void notifyMisconfiguration(String message)
throws MisconfigurationRTException
message - Is the message which explains the misconfiguration.
MisconfigurationRTException - Will be thrown in every case.
public static void notifyMisconfiguration(String message,
Throwable cause)
throws MisconfigurationRTException
MisconfigurationRTException.
message - describes the misconfiguration.cause - the cause exception.
MisconfigurationRTException - Will be thrown in every case.
public static void notifyMisconfiguration(String message,
Object... parameters)
throws MisconfigurationRTException
message - message that contains place holders.parameters - list of parameters that replace the place holders.
MisconfigurationRTException - Will be thorwn in every case.MessageFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||