org.oddjob.arooa.parsing
Class SessionDelegate

java.lang.Object
  extended by org.oddjob.arooa.parsing.SessionDelegate
All Implemented Interfaces:
ArooaSession
Direct Known Subclasses:
DescriptorOverrideSession, PropertiesConfigurationSession, SubstituationPolicySession

public class SessionDelegate
extends Object
implements ArooaSession

Designed to be partially overridden to modify behaviour.

Author:
rob

Constructor Summary
SessionDelegate(ArooaSession delegate)
          Constructor.
 
Method Summary
 ArooaDescriptor getArooaDescriptor()
          Get the ArooaDescriptor to use.
 BeanRegistry getBeanRegistry()
          Get the underlying BeanRegistry.
 ComponentPersister getComponentPersister()
          Get the ComponentPersister to use.
 ComponentPool getComponentPool()
          Get the underlying ComponentPool.
 ComponentProxyResolver getComponentProxyResolver()
          Get the ComponentProxyResolver to use.
 ArooaSession getOriginal()
          Getter for the original.
 PropertyManager getPropertyManager()
          Get the PropertyManager for this session.
 ArooaTools getTools()
          Get the tools ArooaTools to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionDelegate

public SessionDelegate(ArooaSession delegate)
Constructor.

Parameters:
delegate - Existing session.
Method Detail

getComponentPool

public ComponentPool getComponentPool()
Description copied from interface: ArooaSession
Get the underlying ComponentPool.

Specified by:
getComponentPool in interface ArooaSession
Returns:
A ComponentPool. Must not be null.

getBeanRegistry

public BeanRegistry getBeanRegistry()
Description copied from interface: ArooaSession
Get the underlying BeanRegistry.

Specified by:
getBeanRegistry in interface ArooaSession
Returns:
A BeanRegistry. Must not be null.

getPropertyManager

public PropertyManager getPropertyManager()
Description copied from interface: ArooaSession
Get the PropertyManager for this session.

Specified by:
getPropertyManager in interface ArooaSession
Returns:
The PropertyMananger. Must not be null.

getArooaDescriptor

public ArooaDescriptor getArooaDescriptor()
Description copied from interface: ArooaSession
Get the ArooaDescriptor to use.

Specified by:
getArooaDescriptor in interface ArooaSession
Returns:
An ArooaDescriptor. Must not be null.

getTools

public ArooaTools getTools()
Description copied from interface: ArooaSession
Get the tools ArooaTools to use.

Specified by:
getTools in interface ArooaSession
Returns:
An instance of ArooaTools.

getComponentProxyResolver

public ComponentProxyResolver getComponentProxyResolver()
Description copied from interface: ArooaSession
Get the ComponentProxyResolver to use.

Specified by:
getComponentProxyResolver in interface ArooaSession
Returns:
A ComponentProxyResolver. Can be null if no Proxy substitution is required.

getComponentPersister

public ComponentPersister getComponentPersister()
Description copied from interface: ArooaSession
Get the ComponentPersister to use.

Specified by:
getComponentPersister in interface ArooaSession
Returns:
A ComponentPersister. Can be null if no persistence is required.

getOriginal

public ArooaSession getOriginal()
Getter for the original.

Returns:
The original session this instance is delegating to.