org.eclipse.xtend.backend.common
Class ContributionStateContext

java.lang.Object
  extended by org.eclipse.xtend.backend.common.ContributionStateContext

public class ContributionStateContext
extends java.lang.Object

This class serves as "black box" storage for runtime state contributors may wish to store. It is accessed by a "unique key" which must be chosen by the contributor to be guaranteed unique. The recommended best practice is to use a Class object specific to the contributor.
This state is re-initialized for every new ExecutionContext.

Author:
Arno Haase (http://www.haase-consulting.com)

Constructor Summary
ContributionStateContext()
           
 
Method Summary
 java.lang.Object retrieveState(java.lang.Object uniqueKey)
           
 void storeState(java.lang.Object uniqueKey, java.lang.Object state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContributionStateContext

public ContributionStateContext()
Method Detail

retrieveState

public java.lang.Object retrieveState(java.lang.Object uniqueKey)

storeState

public void storeState(java.lang.Object uniqueKey,
                       java.lang.Object state)