|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.spi.AbstractLifecycle
org.apache.tuscany.spi.component.AbstractSCAObject
org.apache.tuscany.spi.extension.ServiceExtension
public class ServiceExtension
The default implementation of an SCA service
Field Summary | |
---|---|
protected ServiceContract<?> |
bindingServiceContract
|
protected InboundWire |
inboundWire
|
protected Class<?> |
interfaze
|
protected OutboundWire |
outboundWire
|
protected WireService |
wireService
|
Fields inherited from class org.apache.tuscany.spi.component.AbstractSCAObject |
---|
listeners, parent, TRUE_FILTER |
Fields inherited from class org.apache.tuscany.spi.AbstractLifecycle |
---|
lifecycleState |
Fields inherited from interface org.apache.tuscany.spi.Lifecycle |
---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED |
Constructor Summary | |
---|---|
ServiceExtension(String name,
Class<?> interfaze,
CompositeComponent parent,
WireService wireService)
|
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 |
Scope |
getScope()
Returns the artifact scope |
Object |
getServiceInstance()
Returns an instance associated with the default 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 outboundWire)
Sets the outbound wire for flowing a request out of the service |
Methods inherited from class org.apache.tuscany.spi.component.AbstractSCAObject |
---|
addListener, addListener, getExtensions, getListeners, getName, getParent, isSystem, prepare, publish, removeListener, toString |
Methods inherited from class org.apache.tuscany.spi.AbstractLifecycle |
---|
getLifecycleState, setLifecycleState, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tuscany.spi.component.SCAObject |
---|
getExtensions, getName, getParent, 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 |
Field Detail |
---|
protected Class<?> interfaze
protected InboundWire inboundWire
protected OutboundWire outboundWire
protected WireService wireService
protected ServiceContract<?> bindingServiceContract
Constructor Detail |
---|
public ServiceExtension(String name, Class<?> interfaze, CompositeComponent parent, WireService wireService) throws CoreRuntimeException
CoreRuntimeException
Method Detail |
---|
public Scope getScope()
SCAObject
getScope
in interface SCAObject
public InboundWire getInboundWire()
Service
getInboundWire
in interface Service
public void setInboundWire(InboundWire wire)
Service
setInboundWire
in interface Service
wire
- the inbound wire for flowing a request through the servicepublic OutboundWire getOutboundWire()
Service
getOutboundWire
in interface Service
public void setOutboundWire(OutboundWire outboundWire)
Service
setOutboundWire
in interface Service
outboundWire
- the outbound wire for flowing a request out of the servicepublic TargetInvoker createCallbackTargetInvoker(ServiceContract contract, Operation operation)
Service
createCallbackTargetInvoker
in interface Service
contract
- the callback contractoperation
- the callback operation the target invoker dispatches topublic Object getServiceInstance() throws TargetException
SCAObject
getServiceInstance
in interface SCAObject
TargetException
- if an error occurs retrieving the instancepublic WireInvocationHandler getHandler()
Service
getHandler
in interface Service
public Class<?> getInterface()
Service
getInterface
in interface Service
public ServiceContract<?> getBindingServiceContract()
Service
getBindingServiceContract
in interface Service
public void setBindingServiceContract(ServiceContract<?> serviceContract)
Service
setBindingServiceContract
in interface Service
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |