|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WireService
Creates proxies that implement Java interfaces and invocation handlers for fronting wires
Method Summary | |
---|---|
void |
checkCompatibility(ServiceContract<?> source,
ServiceContract<?> target,
boolean ignoreCallback)
Check the compatiblity of the source and the target service contracts. |
WireInvocationHandler |
createCallbackHandler(InboundWire wire)
Creates a wire invocation handler for flowing invocations through a callback |
Object |
createCallbackProxy(ServiceContract<?> contract,
InboundWire wire)
Creates a Java proxy for the service contract callback |
WireInvocationHandler |
createHandler(RuntimeWire wire)
Creates an WireInvocationHandler for the given wire |
InboundInvocationChain |
createInboundChain(Operation<?> operation)
Creates an inbound invocation chain for a given operation |
OutboundInvocationChain |
createOutboundChain(Operation<?> operation)
Creates an outbound invocation chain for a given operation |
Object |
createProxy(RuntimeWire wire)
Creates a Java proxy for the given wire |
OutboundWire |
createWire(ReferenceTarget reference,
ReferenceDefinition def)
Creates a wire for flowing outbound invocations to a reference |
InboundWire |
createWire(ServiceDefinition service)
Creates a wire for flowing inbound invocations to a service |
void |
createWires(Component component,
ComponentDefinition<?> definition)
Creates wires for a component and injects them on the component |
void |
createWires(Reference reference,
ServiceContract<?> contract)
Creates wires for a reference and injects them on the reference |
void |
createWires(Service service,
String targetName,
ServiceContract<?> contract)
Creates wires for a service and injects them on the service |
Method Detail |
---|
Object createProxy(RuntimeWire wire) throws ProxyCreationException
wire
- the wire to proxy
ProxyCreationException
Object createCallbackProxy(ServiceContract<?> contract, InboundWire wire) throws ProxyCreationException
contract
- the service contract
ProxyCreationException
WireInvocationHandler createHandler(RuntimeWire wire)
WireInvocationHandler
for the given wire
wire
- the wire to create the invocation handler for
WireInvocationHandler createCallbackHandler(InboundWire wire)
OutboundInvocationChain createOutboundChain(Operation<?> operation)
operation
- the operation to create the chain for
InboundInvocationChain createInboundChain(Operation<?> operation)
operation
- the operation to create the chain for
InboundWire createWire(ServiceDefinition service)
service
- the model representation of the service
OutboundWire createWire(ReferenceTarget reference, ReferenceDefinition def)
reference
- the model artifact representing the reference on the source sidedef
- the model artifact representing the target reference
void createWires(Component component, ComponentDefinition<?> definition)
component
- the componentdefinition
- the model artifact representing the componentvoid createWires(Reference reference, ServiceContract<?> contract)
reference
- the referencecontract
- the model artifact representing the service contract for the referencevoid createWires(Service service, String targetName, ServiceContract<?> contract)
service
- the servicetargetName
- the target nanecontract
- the service contractvoid checkCompatibility(ServiceContract<?> source, ServiceContract<?> target, boolean ignoreCallback) throws IncompatibleServiceContractException
A wire may only connect a source to a target if the target implements an interface that is compatible with the interface required by the source. The source and the target are compatible if:
Please note this test is not symetric: the success of checkCompatibility(A, B) does NOT imply that checkCompatibility(B, A)
source
- The source service contracttarget
- The target service contractignoreCallback
- Indicate the callback should be checked
IncompatibleServiceContractException
- If the source service contract is not compatible with the target one
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |