Interface Messages
public interface Messages
Allows logging and producing errors during build compatible extension
execution. If an error is produced, using any of the
error
methods, the container treats it
as a deployment problem.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a generic error that is represented by an exception.void
Add a generic error that is not related to any particular element, or that information is not known.void
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
Add a generic information message that is not related to any particular element, or that information is not known.void
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
Add a generic warning that is not related to any particular element, or that information is not known.void
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 Details
-
info
Add a generic information message that is not related to any particular element, or that information is not known.- Parameters:
message
- information message
-
info
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
Add an information message which is related to givenBeanInfo
.- Parameters:
message
- information messagerelatedTo
- bean to which the message is related
-
info
Add an information message which is related to givenObserverInfo
.- Parameters:
message
- information messagerelatedTo
- observer to which the message is related
-
warn
Add a generic warning that is not related to any particular element, or that information is not known.- Parameters:
message
- warning message
-
warn
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
Add a warning which is related to givenBeanInfo
.- Parameters:
message
- warning messagerelatedTo
- bean to which the message is related
-
warn
Add a warning which is related to givenObserverInfo
.- Parameters:
message
- warning messagerelatedTo
- observer to which the message is related
-
error
Add a generic error that is not related to any particular element, or that information is not known.- Parameters:
message
- error message
-
error
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
Add an error which is related to givenBeanInfo
.- Parameters:
message
- error messagerelatedTo
- bean to which the message is related
-
error
Add an error which is related to givenObserverInfo
.- Parameters:
message
- error messagerelatedTo
- observer to which the message is related
-
error
Add a generic error that is represented by an exception.- Parameters:
exception
- error, represented by an exception
-