Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.wire
Interface OutboundWire

All Superinterfaces:
RuntimeWire

public interface OutboundWire
extends RuntimeWire

Implementations are responsible for managing the reference side of a wire, including the invocation chains associated with each service operation. An OutboundWire is connected to an InboundWire through their invocation chains.

Version:
$$Rev: 441886 $$ $$Date: 2006-09-09 18:58:51 -0700 (Sat, 09 Sep 2006) $$

Method Summary
 void addInvocationChain(Operation<?> operation, OutboundInvocationChain chain)
          Adds the invocation chain associated with the given operation
 void addInvocationChains(Map<Operation<?>,OutboundInvocationChain> chains)
          Adds the collection of invocation chains keyed by operation
 void addTargetCallbackInvocationChain(Operation<?> operation, InboundInvocationChain chain)
          Adds the callback invocation chain associated with the given operation
 void addTargetCallbackInvocationChains(Map<Operation<?>,InboundInvocationChain> chains)
          Adds the collection of callback invocation chains keyed by operation
 Class<?> getCallbackInterface()
          Returns the callback interface type implemented by generated proxies
 Map<Operation<?>,OutboundInvocationChain> getInvocationChains()
          Returns the invocation configuration for each operation on a service specified by a reference or a target service.
 String getReferenceName()
          Returns the name of the source reference
 Map<Operation<?>,InboundInvocationChain> getTargetCallbackInvocationChains()
          Returns the callback invocation configuration for each operation on a service specified by a reference or a target service.
 QualifiedName getTargetName()
          Returns the name of the target
 void setCallbackInterface(Class<?> interfaze)
          Sets the callback interface type generated proxies implement
 void setReferenceName(String name)
          Sets the name of the source reference
 void setTargetName(QualifiedName name)
          Sets the name of the target
 void setTargetWire(InboundWire wire)
          Set when a wire can be optimized; that is when no handlers or interceptors exist on either end
 
Methods inherited from interface org.apache.tuscany.spi.wire.RuntimeWire
addInterface, getContainer, getServiceContract, getTargetService, isOptimizable, setContainer, setServiceContract
 

Method Detail

getReferenceName

String getReferenceName()
Returns the name of the source reference


setReferenceName

void setReferenceName(String name)
Sets the name of the source reference


getTargetName

QualifiedName getTargetName()
Returns the name of the target


setTargetName

void setTargetName(QualifiedName name)
Sets the name of the target


setCallbackInterface

void setCallbackInterface(Class<?> interfaze)
Sets the callback interface type generated proxies implement


getCallbackInterface

Class<?> getCallbackInterface()
Returns the callback interface type implemented by generated proxies


getInvocationChains

Map<Operation<?>,OutboundInvocationChain> getInvocationChains()
Returns the invocation configuration for each operation on a service specified by a reference or a target service.


addInvocationChains

void addInvocationChains(Map<Operation<?>,OutboundInvocationChain> chains)
Adds the collection of invocation chains keyed by operation


addInvocationChain

void addInvocationChain(Operation<?> operation,
                        OutboundInvocationChain chain)
Adds the invocation chain associated with the given operation


getTargetCallbackInvocationChains

Map<Operation<?>,InboundInvocationChain> getTargetCallbackInvocationChains()
Returns the callback invocation configuration for each operation on a service specified by a reference or a target service.


addTargetCallbackInvocationChains

void addTargetCallbackInvocationChains(Map<Operation<?>,InboundInvocationChain> chains)
Adds the collection of callback invocation chains keyed by operation


addTargetCallbackInvocationChain

void addTargetCallbackInvocationChain(Operation<?> operation,
                                      InboundInvocationChain chain)
Adds the callback invocation chain associated with the given operation


setTargetWire

void setTargetWire(InboundWire wire)
Set when a wire can be optimized; that is when no handlers or interceptors exist on either end


Apache Tuscany SCA Kernel Sub-Project

-