org.apache.tuscany.core.context.scope
Class AbstractScopeContext
java.lang.Object
org.apache.tuscany.core.context.impl.AbstractLifecycle
org.apache.tuscany.core.context.scope.AbstractScopeContext
- All Implemented Interfaces:
- EventListener, Lifecycle, RuntimeEventListener, ScopeContext
- Direct Known Subclasses:
- ModuleScopeContext, RequestScopeContext, SessionScopeContext, StatelessScopeContext
public abstract class AbstractScopeContext
- extends AbstractLifecycle
- implements ScopeContext
Implements functionality common to scope contexts.
- Version:
- $Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
contextFactories
protected Map<String,ContextFactory<Context>> contextFactories
eventContext
protected EventContext eventContext
AbstractScopeContext
public AbstractScopeContext(EventContext eventContext)
registerFactories
public void registerFactories(List<ContextFactory<Context>> configurations)
- Description copied from interface:
ScopeContext
- Registers the context factory used to construct instance contexts for the scope
- Specified by:
registerFactories
in interface ScopeContext
getInstance
public Object getInstance(QualifiedName qName)
throws TargetException
- Specified by:
getInstance
in interface ScopeContext
- Throws:
TargetException
checkInit
protected void checkInit()
getEventContext
protected EventContext getEventContext()
-