|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Reference
Manages an SCA reference configured with a binding
Field Summary |
---|
Fields inherited from interface org.apache.tuscany.spi.Lifecycle |
---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED |
Method Summary | |
---|---|
TargetInvoker |
createAsyncTargetInvoker(OutboundWire wire,
Operation operation)
Callback to create a TargetInvoker which issues a non-blocking dispatch |
TargetInvoker |
createCallbackTargetInvoker(ServiceContract contract,
Operation operation)
Creates a target invoker for callbacks |
TargetInvoker |
createTargetInvoker(ServiceContract contract,
Operation operation)
Callback to create a TargetInvoker which dispatches to the target service of
the reference |
ServiceContract<?> |
getBindingServiceContract()
Get the ServiceContract for the binding |
WireInvocationHandler |
getHandler()
Returns the handler responsible for flowing a request through the reference |
InboundWire |
getInboundWire()
Returns the inbound wire for flowing a request through the reference |
Class<?> |
getInterface()
Returns the service interface configured for the reference |
OutboundWire |
getOutboundWire()
Returns the outbound wire used by the reference to connect to a target |
void |
setBindingServiceContract(ServiceContract<?> serviceContract)
Set the ServiceContract for the binding. |
void |
setInboundWire(InboundWire wire)
Sets the inbound wire for flowing a request through the reference |
void |
setOutboundWire(OutboundWire wire)
Sets the outbound wire used by the reference to connect to a target |
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 |
---|
Class<?> getInterface()
WireInvocationHandler getHandler() throws TargetException
TargetException
InboundWire getInboundWire()
void setInboundWire(InboundWire wire)
OutboundWire getOutboundWire()
void setOutboundWire(OutboundWire wire)
TargetInvoker createTargetInvoker(ServiceContract contract, Operation operation)
TargetInvoker
which dispatches to the target service of
the reference
contract
- the service contract to invoke onoperation
- the operation to invokeTargetInvoker createCallbackTargetInvoker(ServiceContract contract, Operation operation)
TargetInvoker createAsyncTargetInvoker(OutboundWire wire, Operation operation)
TargetInvoker
which issues a non-blocking dispatch
wire
- the outbound wire of the invocation source, used for callbacksoperation
- the operation to invokeServiceContract<?> getBindingServiceContract()
void setBindingServiceContract(ServiceContract<?> serviceContract)
serviceContract
-
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |