|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.core.extension.EntryPointContextFactory
public abstract class EntryPointContextFactory
Default factory for contexts that represent entry points.
Constructor Summary | |
---|---|
EntryPointContextFactory(java.lang.String name,
MessageFactory msgFactory)
|
Method Summary | |
---|---|
void |
addProperty(java.lang.String propertyName,
java.lang.Object value)
Adds a property to the context |
void |
addSourceWireFactories(java.lang.String referenceName,
java.lang.Class referenceInterface,
java.util.List<SourceWireFactory> factories,
boolean multiplicity)
Adds a set of source-side wire factories for the given reference. |
void |
addSourceWireFactory(java.lang.String refName,
SourceWireFactory factory)
Adds a source-side wire factory for the given reference. |
void |
addTargetWireFactory(java.lang.String serviceName,
TargetWireFactory factory)
Adds a target-side wire factory for the given service name. |
EntryPointContext |
createContext()
Creates a Context based on configuration supplied by a logical model assembly |
java.lang.String |
getName()
Returns the name of the Context produced by the current factory |
org.apache.tuscany.model.assembly.Scope |
getScope()
Returns the scope identifier associated with the type of contexts produced by the current factory |
java.util.List<SourceWireFactory> |
getSourceWireFactories()
Returns a collection of source-side wire factories for references. |
java.util.Map<java.lang.String,TargetWireFactory> |
getTargetWireFactories()
Returns a collection of target-side wire factories keyed by service name |
TargetWireFactory |
getTargetWireFactory(java.lang.String serviceName)
Returns the target-side wire factory associated with the given service name |
void |
prepare()
|
void |
prepare(CompositeContext parent)
Called to signal to the configuration that its parent context has been activated and that it shoud perform any required initialization steps |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryPointContextFactory(java.lang.String name, MessageFactory msgFactory)
Method Detail |
---|
public EntryPointContext createContext() throws ContextCreationException
ContextFactory
Context
based on configuration supplied by a logical model assembly
createContext
in interface ContextFactory<EntryPointContext>
ContextCreationException
- if an error occurs creating the contextpublic org.apache.tuscany.model.assembly.Scope getScope()
ContextFactory
getScope
in interface ContextFactory<EntryPointContext>
public java.lang.String getName()
ContextFactory
Context
produced by the current factory
getName
in interface ContextFactory<EntryPointContext>
public void prepare()
public void addTargetWireFactory(java.lang.String serviceName, TargetWireFactory factory)
ContextFactory
addTargetWireFactory
in interface ContextFactory<EntryPointContext>
public TargetWireFactory getTargetWireFactory(java.lang.String serviceName)
ContextFactory
getTargetWireFactory
in interface ContextFactory<EntryPointContext>
public java.util.Map<java.lang.String,TargetWireFactory> getTargetWireFactories()
ContextFactory
getTargetWireFactories
in interface ContextFactory<EntryPointContext>
public void addSourceWireFactory(java.lang.String refName, SourceWireFactory factory)
ContextFactory
addSourceWireFactory
in interface ContextFactory<EntryPointContext>
public java.util.List<SourceWireFactory> getSourceWireFactories()
ContextFactory
getSourceWireFactories
in interface ContextFactory<EntryPointContext>
public void addProperty(java.lang.String propertyName, java.lang.Object value)
ContextFactory
addProperty
in interface ContextFactory<EntryPointContext>
public void addSourceWireFactories(java.lang.String referenceName, java.lang.Class referenceInterface, java.util.List<SourceWireFactory> factories, boolean multiplicity)
ContextFactory
addSourceWireFactories
in interface ContextFactory<EntryPointContext>
public void prepare(CompositeContext parent)
ContextFactory
prepare
in interface ContextFactory<EntryPointContext>
parent
- the parent context
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |