net.sf.mmm.util.context.base
Class ImmutableGenericContext

java.lang.Object
  extended by net.sf.mmm.util.context.base.AbstractGenericContextProxy
      extended by net.sf.mmm.util.context.base.ImmutableGenericContext
All Implemented Interfaces:
GenericContext

public class ImmutableGenericContext
extends AbstractGenericContextProxy

This is an implementation of the GenericContext interface that is an immutable view that delegates to another instance.

Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  GenericContext delegate
          the "delegate instance" this proxy points to.
 
Constructor Summary
ImmutableGenericContext(GenericContext environment)
          The constructor.
 
Method Summary
protected  GenericContext getContext()
          This method gets the delegate instance this proxy points to.
 
Methods inherited from class net.sf.mmm.util.context.base.AbstractGenericContextProxy
createChildContext, getVariable, getVariable, getVariable, getVariableNames, hasVariable, requireVariable, requireVariable, requireVariable, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private final GenericContext delegate
the "delegate instance" this proxy points to.

Constructor Detail

ImmutableGenericContext

public ImmutableGenericContext(GenericContext environment)
The constructor.

Parameters:
environment - is the "delegate instance" this proxy points to.
Method Detail

getContext

protected GenericContext getContext()
This method gets the delegate instance this proxy points to.

Specified by:
getContext in class AbstractGenericContextProxy
Returns:
the real environment behind this proxy.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.