org.oddjob.arooa.parsing
Class OverrideContext

java.lang.Object
  extended by org.oddjob.arooa.parsing.OverrideContext
All Implemented Interfaces:
ArooaContext
Direct Known Subclasses:
RuntimeOverrideContext, SessionOverrideContext

public class OverrideContext
extends Object
implements ArooaContext

Wraps an ArooaContext to allow behaviour to be altered. This is a classic application of the Adaptor Pattern.

Author:
rob

Constructor Summary
OverrideContext(ArooaContext context)
           
 
Method Summary
 ArooaHandler getArooaHandler()
          Get the ArooHandler that will be used to process any child elements.
 ArooaType getArooaType()
          Get the type of bean this is.
 ConfigurationNode getConfigurationNode()
          Get the ConfigurationNode for this context.
protected  ArooaContext getExistingContext()
           
 ArooaContext getParent()
          Get the parent ArooaContext
 PrefixMappings getPrefixMappings()
          Get the prefix mappings for this context.
 RuntimeConfiguration getRuntime()
          Get the current RuntimeConfiguration{} for this context.
 ArooaSession getSession()
          Get the session for this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverrideContext

public OverrideContext(ArooaContext context)
Method Detail

getExistingContext

protected ArooaContext getExistingContext()

getArooaType

public ArooaType getArooaType()
Description copied from interface: ArooaContext
Get the type of bean this is.

Specified by:
getArooaType in interface ArooaContext
Returns:
The type. Never null.

getParent

public ArooaContext getParent()
Description copied from interface: ArooaContext
Get the parent ArooaContext

Specified by:
getParent in interface ArooaContext
Returns:
The parent context. This will be null for the root context.

getArooaHandler

public ArooaHandler getArooaHandler()
Description copied from interface: ArooaContext
Get the ArooHandler that will be used to process any child elements.

Specified by:
getArooaHandler in interface ArooaContext
Returns:
An ArooaHandler. Never null.

getRuntime

public RuntimeConfiguration getRuntime()
Description copied from interface: ArooaContext
Get the current RuntimeConfiguration{} for this context.

Specified by:
getRuntime in interface ArooaContext
Returns:
A RuntimeConfiguration. This may be null for the root context.

getPrefixMappings

public PrefixMappings getPrefixMappings()
Description copied from interface: ArooaContext
Get the prefix mappings for this context.

Specified by:
getPrefixMappings in interface ArooaContext
Returns:

getConfigurationNode

public ConfigurationNode getConfigurationNode()
Description copied from interface: ArooaContext
Get the ConfigurationNode for this context.

Specified by:
getConfigurationNode in interface ArooaContext
Returns:
A RuntimeNode. Never null.

getSession

public ArooaSession getSession()
Description copied from interface: ArooaContext
Get the session for this context.

Specified by:
getSession in interface ArooaContext
Returns: