java.lang.Object | |
↳ | org.apache.commons.betwixt.strategy.IdStoringStrategy |
Known Direct Subclasses |
Pluggable strategy for id storage management. It is possible to use this strategy for innovative active storage storage strategies as well as passive ones. For example, it is possible to have some beans map to references without ever being fully mapped.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT |
This field is deprecated.
do not use this singleton since it
creates a static Map of all objects ever written.
Use createDefault() instead
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Factory method creates the default
Betwixt implementation. | |||||||||||
Retrieves a reference for the given instance.
| |||||||||||
Gets an object matching the given reference.
| |||||||||||
Reset to the initial state.
| |||||||||||
Stores an instance reference for later retrieval.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This field is deprecated.
do not use this singleton since it
creates a static Map of all objects ever written.
Use createDefault()
instead
Default storage strategy
Factory method creates the default Betwixt
implementation.
The implementation created may vary if the default implementation changes.
IdStoringStrategy
used as defaultRetrieves a reference for the given instance.
If a not null value is returned from this method,
then the bean content will not be written.
Use IDGenerator
strategy to vary the values
written for a bean.
context | current context, not null |
---|---|
bean | the instance, not null |
Gets an object matching the given reference.
context | Context , not null |
---|---|
id | the reference id |
Reset to the initial state.
Stores an instance reference for later retrieval. This method is shared by writing and reading.
context | current context, not null |
---|---|
bean | the instance, not null |
id | the id to use |