org.nakedobjects.runtime.persistence.adaptermanager
Interface AdapterManagerLookup

All Superinterfaces:
Injectable
All Known Subinterfaces:
AdapterManager, AdapterManagerBackdoor, AdapterManagerExtended, AdapterManagerProxy
All Known Implementing Classes:
AdapterManagerAbstract, AdapterManagerDefault

public interface AdapterManagerLookup
extends Injectable

Responsible for managing the adapters and identities for each and every POJO that is being used by the framework.

It provides a consistent set of adapters in memory, providing an adapter for the POJOs that are in use ensuring that the same object is not loaded twice into memory.

Each POJO is given an adapter so that the framework can work with the POJOs even though it does not understand their types. Each POJO maps to an adapter and these are reused.


Method Summary
 NakedObject getAdapterFor(java.lang.Object pojo)
          Gets the adapter for the specified domain object if it exists in the identity map.
 NakedObject getAdapterFor(Oid oid)
          Gets the adapter for the Oid if it exists in the identity map.
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.Injectable
injectInto
 

Method Detail

getAdapterFor

NakedObject getAdapterFor(java.lang.Object pojo)
Gets the adapter for the specified domain object if it exists in the identity map.

Parameters:
pojo - - must not be null
Returns:
adapter, or null if doesn't exist.

getAdapterFor

NakedObject getAdapterFor(Oid oid)
Gets the adapter for the Oid if it exists in the identity map.

Parameters:
oid - - must not be null
Returns:
adapter, or null if doesn't exist.


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.