|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.core.context.impl.AbstractLifecycle
org.apache.tuscany.core.context.impl.AbstractContext
org.apache.tuscany.core.context.impl.EntryPointContextImpl
public class EntryPointContextImpl
The default implementation of an entry point context
Field Summary |
---|
Fields inherited from class org.apache.tuscany.core.context.impl.AbstractLifecycle |
---|
lifecycleState, name |
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle |
---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED |
Constructor Summary | |
---|---|
EntryPointContextImpl(java.lang.String name,
SourceWireFactory sourceWireFactory,
MessageFactory messageFactory)
Creates a new entry point |
Method Summary | |
---|---|
java.lang.Object |
getHandler()
Returns the handler responsible for flowing a request through the entry point |
java.lang.Object |
getInstance(QualifiedName qName)
Returns the instance associated with the requested name, which may be in a atomic or composite form. |
java.lang.Class |
getServiceInterface()
Returns the service interface configured for the entry poitn |
void |
start()
Starts the Lifecycle. |
void |
stop()
Stops the Lifecycle. |
Methods inherited from class org.apache.tuscany.core.context.impl.AbstractLifecycle |
---|
addListener, addListener, getLifecycleState, getListeners, getName, publish, removeListener, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tuscany.core.context.EventPublisher |
---|
addListener, addListener, publish, removeListener |
Methods inherited from interface org.apache.tuscany.core.context.Lifecycle |
---|
getLifecycleState, getName, setName |
Constructor Detail |
---|
public EntryPointContextImpl(java.lang.String name, SourceWireFactory sourceWireFactory, MessageFactory messageFactory) throws ContextInitException
name
- the entry point namesourceWireFactory
- the proxy factory containing the invocation chains for the entry pointmessageFactory
- a factory for generating invocation messages
ContextInitException
- if an error occurs creating the entry pointMethod Detail |
---|
public java.lang.Object getInstance(QualifiedName qName) throws TargetException
Context
getInstance
in interface Context
qName
- a qualified name of the requested instance
TargetException
- if an error occurs retrieving the instance or the requested component is not an entry
point.CompositeContext
,
EntryPoint
public void start() throws ContextInitException
Lifecycle
start
in interface Lifecycle
ContextInitException
public void stop() throws CoreRuntimeException
Lifecycle
stop
in interface Lifecycle
CoreRuntimeException
public java.lang.Object getHandler() throws TargetException
EntryPointContext
getHandler
in interface EntryPointContext
TargetException
public java.lang.Class getServiceInterface()
EntryPointContext
getServiceInterface
in interface EntryPointContext
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |