Interface MessageAdditionalInformationAware
-
public interface MessageAdditionalInformationAware
An entity can be wrapped with this interface before passing toDefaultNotificationHandler
for 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> T
unwrap()
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
-
-