|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Component
The runtime instantiation of an SCA component
Field Summary |
---|
Fields inherited from interface org.apache.tuscany.spi.Lifecycle |
---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED |
Method Summary | |
---|---|
void |
addInboundWire(InboundWire wire)
Adds a target-side wire. |
void |
addOutboundWire(OutboundWire wire)
Adds a source-side wire for the given reference. |
void |
addOutboundWires(Class<?> multiplicityClass,
List<OutboundWire> wires)
Adds a set of source-side multiplicity wires for the given reference. |
TargetInvoker |
createAsyncTargetInvoker(InboundWire wire,
Operation operation)
Callback to create a TargetInvoker which dispatches to a service offered by
the component |
TargetInvoker |
createTargetInvoker(String targetName,
Operation operation)
Callback to create a TargetInvoker which dispatches to a service offered by
the component |
InboundWire |
getInboundWire(String serviceName)
Returns the target-side wire associated with the given service name |
Map<String,InboundWire> |
getInboundWires()
Returns a map of inbound wires for a service. |
Map<String,List<OutboundWire>> |
getOutboundWires()
Returns a map of source-side wires for references. |
Object |
getServiceInstance(String name)
Returns a service associated with the given name |
List<Class<?>> |
getServiceInterfaces()
Returns the service interfaces implemented by the component |
Methods inherited from interface org.apache.tuscany.spi.component.SCAObject |
---|
getExtensions, getName, getParent, getScope, getServiceInstance, isSystem, prepare |
Methods inherited from interface org.apache.tuscany.spi.event.EventPublisher |
---|
addListener, addListener, publish, removeListener |
Methods inherited from interface org.apache.tuscany.spi.Lifecycle |
---|
getLifecycleState, start, stop |
Method Detail |
---|
Object getServiceInstance(String name) throws TargetException
TargetException
- if an error occurs retrieving the service instanceList<Class<?>> getServiceInterfaces()
void addInboundWire(InboundWire wire)
InboundWire getInboundWire(String serviceName)
Map<String,InboundWire> getInboundWires()
void addOutboundWire(OutboundWire wire)
void addOutboundWires(Class<?> multiplicityClass, List<OutboundWire> wires)
Map<String,List<OutboundWire>> getOutboundWires()
TargetInvoker createTargetInvoker(String targetName, Operation operation)
TargetInvoker
which dispatches to a service offered by
the component
targetName
- operation
- the operation to invokeTargetInvoker createAsyncTargetInvoker(InboundWire wire, Operation operation)
TargetInvoker
which dispatches to a service offered by
the component
operation
- the operation to invoke
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |