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 Details

    • 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 given AnnotationTarget (which is most likely a DeclarationInfo).
      Parameters:
      message - information message
      relatedTo - annotation target to which the message is related
    • info

      void info(String message, BeanInfo relatedTo)
      Add an information message which is related to given BeanInfo.
      Parameters:
      message - information message
      relatedTo - bean to which the message is related
    • info

      void info(String message, ObserverInfo relatedTo)
      Add an information message which is related to given ObserverInfo.
      Parameters:
      message - information message
      relatedTo - 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 given AnnotationTarget (which is most likely a DeclarationInfo).
      Parameters:
      message - warning message
      relatedTo - annotation target to which the message is related
    • warn

      void warn(String message, BeanInfo relatedTo)
      Add a warning which is related to given BeanInfo.
      Parameters:
      message - warning message
      relatedTo - bean to which the message is related
    • warn

      void warn(String message, ObserverInfo relatedTo)
      Add a warning which is related to given ObserverInfo.
      Parameters:
      message - warning message
      relatedTo - 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 given AnnotationTarget (which is most likely a DeclarationInfo).
      Parameters:
      message - error message
      relatedTo - annotation target to which the message is related
    • error

      void error(String message, BeanInfo relatedTo)
      Add an error which is related to given BeanInfo.
      Parameters:
      message - error message
      relatedTo - bean to which the message is related
    • error

      void error(String message, ObserverInfo relatedTo)
      Add an error which is related to given ObserverInfo.
      Parameters:
      message - error message
      relatedTo - 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