Interface MessageAdditionalInformationAware
-
public interface MessageAdditionalInformationAwareAn entity can be wrapped with this interface before passing toDefaultNotificationHandlerfor processing. This has the eventual effect of executing a more rich version of message creation atMessageFactory.createMessage(Object, Map), with the map param being derived from the attributes pulled from entities implementing this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getAttributes()The attributes to leverage during message construction atMessageFactory.createMessage(Object, Map)<T> Tunwrap()Unwrap the proxy exposing this interface, if applicable, and expose the underlying entity instance.
-
-
-
Method Detail
-
getAttributes
Map<String,Object> getAttributes()
The attributes to leverage during message construction atMessageFactory.createMessage(Object, Map)- Returns:
- The attributes to leverage during message construction
-
unwrap
<T> T unwrap()
Unwrap the proxy exposing this interface, if applicable, and expose the underlying entity instance.- Type Parameters:
T- The entity class type- Returns:
- The entity instance
-
-