org.objectweb.kilim.model.mapping
Class DefaultMappingContext

java.lang.Object
  extended byorg.objectweb.kilim.model.mapping.DefaultMappingContext
All Implemented Interfaces:
MappingContext, java.io.Serializable

public class DefaultMappingContext
extends java.lang.Object
implements MappingContext, java.io.Serializable

A mapping context is a container for all informations useful when performing the effective task associated to providers and transformers. This simple implementation provides two stacks : (1) callStack, a stack automatically managed by the Kilim infrastructure, which contains the RtComponentSources mirroring on the execution stack, (2) contextstack, a stack specifically managed by mappers. calls to getValue() and execute() methods.

Author:
horn
See Also:
Serialized Form

Field Summary
private  java.util.Stack callStack
           
private  java.util.Stack contextStack
           
private  ComponentElement currentElement
           
 
Constructor Summary
DefaultMappingContext()
          Method DefaultMappingContext.
 
Method Summary
 java.util.Stack getCallStack()
          Method getCallStack.
 java.util.Stack getContextStack()
          Method getContextStack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callStack

private java.util.Stack callStack

contextStack

private java.util.Stack contextStack

currentElement

private ComponentElement currentElement
Constructor Detail

DefaultMappingContext

public DefaultMappingContext()
Method DefaultMappingContext.

Method Detail

getContextStack

public java.util.Stack getContextStack()
Method getContextStack. It returns the contextStack.

Specified by:
getContextStack in interface MappingContext
Returns:
Stack

getCallStack

public java.util.Stack getCallStack()
Method getCallStack. This method returns the callStack.

Specified by:
getCallStack in interface MappingContext
Returns:
Stack