Package org.oddjob.persist
Interface OddjobPersister
- All Known Implementing Classes:
FilePersister,MapPersister,PersisterBase
public interface OddjobPersister
Provide a
ComponentPersister for the underlying framework to use.
Most implementations will be hierarchical, taking advantage of the id to
create a path by which to persist components.
Oddjob achieves the hierarchical effect by inspecting
any ComponentPersister passed down from a parent Oddjob. If it is of
this type the persisterFor(String) method will be
called to get the new ComponentPersister. For this reason an
OddjobPersister that wants to be hierarchical must provide a
ComponentPersister that is also an OddjobPersister.
- Author:
- rob
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionpersisterFor(String id) Provide a ComponentPersiter which may or may not require the id.
-
Method Details
-
persisterFor
Provide a ComponentPersiter which may or may not require the id. If an id is required but not provided null will be returned.- Parameters:
id- An Id which may be used for a path. May be Null.- Returns:
- A ComponentPersister. May be null.
-