-
public interface MessagesAllows logging and producing errors during build compatible extension execution. If an error is produced, using any of theerrormethods, the container treats it as a deployment problem.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiderror(java.lang.Exception exception)Add a generic error that is represented by an exception.voiderror(java.lang.String message)Add a generic error that is not related to any particular element, or that information is not known.voiderror(java.lang.String message, BeanInfo relatedTo)Add an error which is related to givenBeanInfo.voiderror(java.lang.String message, ObserverInfo relatedTo)Add an error which is related to givenObserverInfo.voiderror(java.lang.String message, AnnotationTarget relatedTo)Add an error which is related to givenAnnotationTarget(which is most likely aDeclarationInfo).voidinfo(java.lang.String message)Add a generic information message that is not related to any particular element, or that information is not known.voidinfo(java.lang.String message, BeanInfo relatedTo)Add an information message which is related to givenBeanInfo.voidinfo(java.lang.String message, ObserverInfo relatedTo)Add an information message which is related to givenObserverInfo.voidinfo(java.lang.String message, AnnotationTarget relatedTo)Add an information message which is related to givenAnnotationTarget(which is most likely aDeclarationInfo).voidwarn(java.lang.String message)Add a generic warning that is not related to any particular element, or that information is not known.voidwarn(java.lang.String message, BeanInfo relatedTo)Add a warning which is related to givenBeanInfo.voidwarn(java.lang.String message, ObserverInfo relatedTo)Add a warning which is related to givenObserverInfo.voidwarn(java.lang.String message, AnnotationTarget relatedTo)Add a warning which is related to givenAnnotationTarget(which is most likely aDeclarationInfo).
-
-
-
Method Detail
-
info
void info(java.lang.String message)
Add a generic information message that is not related to any particular element, or that information is not known.- Parameters:
message- information message
-
info
void info(java.lang.String message, AnnotationTarget relatedTo)Add an information message which is related to givenAnnotationTarget(which is most likely aDeclarationInfo).- Parameters:
message- information messagerelatedTo- annotation target to which the message is related
-
info
void info(java.lang.String message, BeanInfo relatedTo)Add an information message which is related to givenBeanInfo.- Parameters:
message- information messagerelatedTo- bean to which the message is related
-
info
void info(java.lang.String message, ObserverInfo relatedTo)Add an information message which is related to givenObserverInfo.- Parameters:
message- information messagerelatedTo- observer to which the message is related
-
warn
void warn(java.lang.String message)
Add a generic warning that is not related to any particular element, or that information is not known.- Parameters:
message- warning message
-
warn
void warn(java.lang.String message, AnnotationTarget relatedTo)Add a warning which is related to givenAnnotationTarget(which is most likely aDeclarationInfo).- Parameters:
message- warning messagerelatedTo- annotation target to which the message is related
-
warn
void warn(java.lang.String message, BeanInfo relatedTo)Add a warning which is related to givenBeanInfo.- Parameters:
message- warning messagerelatedTo- bean to which the message is related
-
warn
void warn(java.lang.String message, ObserverInfo relatedTo)Add a warning which is related to givenObserverInfo.- Parameters:
message- warning messagerelatedTo- observer to which the message is related
-
error
void error(java.lang.String message)
Add a generic error that is not related to any particular element, or that information is not known.- Parameters:
message- error message
-
error
void error(java.lang.String message, AnnotationTarget relatedTo)Add an error which is related to givenAnnotationTarget(which is most likely aDeclarationInfo).- Parameters:
message- error messagerelatedTo- annotation target to which the message is related
-
error
void error(java.lang.String message, BeanInfo relatedTo)Add an error which is related to givenBeanInfo.- Parameters:
message- error messagerelatedTo- bean to which the message is related
-
error
void error(java.lang.String message, ObserverInfo relatedTo)Add an error which is related to givenObserverInfo.- Parameters:
message- error messagerelatedTo- observer to which the message is related
-
error
void error(java.lang.Exception exception)
Add a generic error that is represented by an exception.- Parameters:
exception- error, represented by an exception
-
-