Scratchpad (interface)

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.

Members

get(Object)

Obtain user-data, as set by a previous object being acted upon.

The key value should obey the general contract for hash maps.

put(Object, Object)

Set user-data, for the use of a subsequent object being acted upon.

The key value should obey the general contract for hash maps.

Implementation

This framework provides a default implementation of o.a.i.core.runtimeservices.scratchpad.ScratchpadDefault. This is just an @InteractionScope'd wrapper around a java.util.Map

  • QueryResultsCache

    is useful for caching the results of expensive method calls. It is also