Package org.jboss.weld.logging
Interface MessageCallback<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
JBoss Logging is not using message keys and so it's not possible to reference the message (a message method annotated with
Message) and use it as a
method parameter or construct it lazily. This callback should be used to work around this limitation.
Note that the method parameters are not checked and so the invocation may result in ArrayIndexOutOfBoundsException.- Author:
- Martin Kouba
- See Also:
-
Message
-
Method Summary
-
Method Details
-
construct
Constructs the message or Throwable.- Parameters:
params-- Returns:
- the return value
-