org.apache.tuscany.core.context.impl
Class CompositeContextImpl
java.lang.Object
org.apache.tuscany.core.context.impl.AbstractLifecycle
org.apache.tuscany.core.context.impl.AbstractContext
org.apache.tuscany.core.context.impl.AbstractCompositeContext
org.apache.tuscany.core.context.impl.CompositeContextImpl
- All Implemented Interfaces:
- ContextFactoryBuilder, WireBuilder, AutowireContext, CompositeContext, ConfigurationContext, Context, EventPublisher, Lifecycle, ScopeAwareContext, ModuleContext
public class CompositeContextImpl
- extends AbstractCompositeContext
- implements ModuleContext
The standard implementation of an composite context. Autowiring is performed by delegating to the parent context.
- Version:
- $Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
Fields inherited from class org.apache.tuscany.core.context.impl.AbstractCompositeContext |
assemblyContext, configurationContext, configurations, DEFAULT_WAIT, eventContext, immutableScopeContexts, initialized, initializeLatch, lock, module, parentContext, scopeContexts, scopeIndex, scopeStrategy |
Methods inherited from class org.apache.tuscany.core.context.impl.AbstractCompositeContext |
build, buildTarget, checkInit, completeTargetChain, connect, fireEvent, getComposite, getContext, getInstance, getParent, getScopeContexts, getURI, initializeScopes, initializeWireFactories, publish, registerAutowireExternal, registerAutowireInternal, registerConfiguration, registerModelObject, registerModelObjects, removeContext, resolveExternalInstance, resolveInstance, setAssemblyContext, setAutowireContext, setConfigurationContext, setEventContext, setModule, setParent, setURI, start, stop, wireSource |
CompositeContextImpl
public CompositeContextImpl()
CompositeContextImpl
public CompositeContextImpl(String name,
CompositeContext parent,
ScopeStrategy strategy,
EventContext ctx,
ConfigurationContext configCtx)
CompositeContextImpl
public CompositeContextImpl(String name,
CompositeContext parent,
AutowireContext autowireContext,
ScopeStrategy strategy,
EventContext ctx,
ConfigurationContext configCtx)
setScopeStrategy
public void setScopeStrategy(ScopeStrategy scopeStrategy)
locateService
public Object locateService(String qualifiedName)
throws ServiceUnavailableException
- Specified by:
locateService
in interface ModuleContext
- Throws:
ServiceUnavailableException
createServiceReference
public ServiceReference createServiceReference(String serviceName)
getRequestContext
public RequestContext getRequestContext()
- Specified by:
getRequestContext
in interface ModuleContext
createServiceReferenceForSession
public ServiceReference createServiceReferenceForSession(Object self)
- Specified by:
createServiceReferenceForSession
in interface ModuleContext
createServiceReferenceForSession
public ServiceReference createServiceReferenceForSession(Object self,
String serviceName)
- Specified by:
createServiceReferenceForSession
in interface ModuleContext
newSession
public ServiceReference newSession(String serviceName)
- Specified by:
newSession
in interface ModuleContext
newSession
public ServiceReference newSession(String serviceName,
Object sessionId)
- Specified by:
newSession
in interface ModuleContext
-