Interface Messages
-
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(Exception exception)
Add a generic error that is represented by an exception.void
error(String message)
Add a generic error that is not related to any particular element, or that information is not known.void
error(String message, BeanInfo relatedTo)
Add an error which is related to givenBeanInfo
.void
error(String message, ObserverInfo relatedTo)
Add an error which is related to givenObserverInfo
.void
error(String message, AnnotationTarget relatedTo)
Add an error which is related to givenAnnotationTarget
(which is most likely aDeclarationInfo
).void
info(String message)
Add a generic information message that is not related to any particular element, or that information is not known.void
info(String message, BeanInfo relatedTo)
Add an information message which is related to givenBeanInfo
.void
info(String message, ObserverInfo relatedTo)
Add an information message which is related to givenObserverInfo
.void
info(String message, AnnotationTarget relatedTo)
Add an information message which is related to givenAnnotationTarget
(which is most likely aDeclarationInfo
).void
warn(String message)
Add a generic warning that is not related to any particular element, or that information is not known.void
warn(String message, BeanInfo relatedTo)
Add a warning which is related to givenBeanInfo
.void
warn(String message, ObserverInfo relatedTo)
Add a warning which is related to givenObserverInfo
.void
warn(String message, AnnotationTarget relatedTo)
Add a warning which is related to givenAnnotationTarget
(which is most likely aDeclarationInfo
).
-
-
-
Method Detail
-
info
void info(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(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(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(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(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(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(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(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(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(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(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(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(Exception exception)
Add a generic error that is represented by an exception.- Parameters:
exception
- error, represented by an exception
-
-