|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
The runtime instantiation of an SCA service 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 |
createCallbackTargetInvoker(ServiceContract contract,
Operation operation)
Returns the target invoker for dispatching callback invocations |
ServiceContract<?> |
getBindingServiceContract()
Get the ServiceContract for the binding |
WireInvocationHandler |
getHandler()
Returns the handler responsible for flowing a request through the service |
InboundWire |
getInboundWire()
Returns the inbound wire for flowing a request through the service |
Class<?> |
getInterface()
Returns the service interface configured for the service |
OutboundWire |
getOutboundWire()
Returns the outbound wire for flowing a request out of the service |
void |
setBindingServiceContract(ServiceContract<?> serviceContract)
Set the ServiceContract for the binding. |
void |
setInboundWire(InboundWire wire)
Sets the inbound wire for flowing a request through the service |
void |
setOutboundWire(OutboundWire wire)
Sets the outbound wire for flowing a request out of the service |
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 |
---|
WireInvocationHandler getHandler() throws TargetException
TargetException
Class<?> getInterface()
InboundWire getInboundWire()
void setInboundWire(InboundWire wire)
wire
- the inbound wire for flowing a request through the serviceOutboundWire getOutboundWire()
void setOutboundWire(OutboundWire wire)
wire
- the outbound wire for flowing a request out of the serviceTargetInvoker createCallbackTargetInvoker(ServiceContract contract, Operation operation)
contract
- the callback contractoperation
- the callback operation the target invoker dispatches toServiceContract<?> 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 |