-
public interface Messages
Allows logging and producing errors during build compatible extension execution. If an error is produced, using any of theerror
methods, the container treats it as a deployment problem.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
error(java.lang.Exception exception)
Add a generic error that is represented by an exception.void
error(java.lang.String message)
Add a generic error that is not related to any particular element, or that information is not known.void
error(java.lang.String message, BeanInfo relatedTo)
Add an error which is related to givenBeanInfo
.void
error(java.lang.String message, ObserverInfo relatedTo)
Add an error which is related to givenObserverInfo
.void
error(java.lang.String message, AnnotationTarget relatedTo)
Add an error which is related to givenAnnotationTarget
(which is most likely aDeclarationInfo
).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.void
info(java.lang.String message, BeanInfo relatedTo)
Add an information message which is related to givenBeanInfo
.void
info(java.lang.String message, ObserverInfo relatedTo)
Add an information message which is related to givenObserverInfo
.void
info(java.lang.String message, AnnotationTarget relatedTo)
Add an information message which is related to givenAnnotationTarget
(which is most likely aDeclarationInfo
).void
warn(java.lang.String message)
Add a generic warning that is not related to any particular element, or that information is not known.void
warn(java.lang.String message, BeanInfo relatedTo)
Add a warning which is related to givenBeanInfo
.void
warn(java.lang.String message, ObserverInfo relatedTo)
Add a warning which is related to givenObserverInfo
.void
warn(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
-
-