Scratchpad
This service (API and implementation) provides a mechanism to interchange information between multiple objects invoked in the same interaction.
API
Scratchpad.java
interface Scratchpad {
Object get(Object key) (1)
void put(Object key, Object value) (2)
}
1 | get(Object)
Obtain user-data, as set by a previous object being acted upon. |
2 | put(Object, Object)
Set user-data, for the use of a subsequent object being acted upon. |
Implementation
This framework provides a default implementation of o.a.c.core.runtimeservices.scratchpad.ScratchpadDefault
.
This is just an @InteractionScope'd wrapper around a java.util.Map