Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.wire
Interface InboundWire

All Superinterfaces:
RuntimeWire

public interface InboundWire
extends RuntimeWire

Implementations are responsible for managing the inbound side of a wire, including the invocation chains associated with each service operation.

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

Method Summary
 void addInvocationChain(Operation<?> operation, InboundInvocationChain chain)
          Adds the invocation chain associated with the given operation
 void addInvocationChains(Map<Operation<?>,InboundInvocationChain> chains)
          Adds the collection of invocation chains keyed by operation
 void addMapping(Object messageId, Object fromAddress)
          Creates an association between a message id and the address of the SCAObject that the corresponding message originates from
 void addSourceCallbackInvocationChain(Object targetAddr, Operation<?> operation, OutboundInvocationChain chain)
          Adds the callback invocation chain associated with the given operation for a given target addr
 void addSourceCallbackInvocationChains(Object targetAddr, Map<Operation<?>,OutboundInvocationChain> chains)
          Adds the collection of callback invocation chains keyed by operation for a given target addr
 String getCallbackReferenceName()
          Returns the name of the callback associated with the service of the wire
 Map<Operation<?>,InboundInvocationChain> getInvocationChains()
          Returns the invocation chain for each operation on a service specified by a reference or a target service.
 String getServiceName()
          Returns the name of the target service of the wire
 Map<Operation<?>,OutboundInvocationChain> getSourceCallbackInvocationChains(Object targetAddr)
          Returns the callback invocation configuration for each operation on a service specified by a reference or a target service.
 void removeMapping(Object messageId)
          Removes an association between a message id and the address of the SCAObject that the corresponding message originates from
 Object retrieveMapping(Object messageId)
          Retrieves the SCAObject address that is associated with a message id
 void setCallbackReferenceName(String callbackReferenceName)
          Sets the name of the callback associated with the service of the wire
 void setServiceName(String name)
          Sets the name of the target service of the wire
 void setTargetWire(OutboundWire 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

getServiceName

String getServiceName()
Returns the name of the target service of the wire


setServiceName

void setServiceName(String name)
Sets the name of the target service of the wire


getInvocationChains

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


addInvocationChains

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


addInvocationChain

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


getSourceCallbackInvocationChains

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


addSourceCallbackInvocationChains

void addSourceCallbackInvocationChains(Object targetAddr,
                                       Map<Operation<?>,OutboundInvocationChain> chains)
Adds the collection of callback invocation chains keyed by operation for a given target addr


addSourceCallbackInvocationChain

void addSourceCallbackInvocationChain(Object targetAddr,
                                      Operation<?> operation,
                                      OutboundInvocationChain chain)
Adds the callback invocation chain associated with the given operation for a given target addr


getCallbackReferenceName

String getCallbackReferenceName()
Returns the name of the callback associated with the service of the wire


setCallbackReferenceName

void setCallbackReferenceName(String callbackReferenceName)
Sets the name of the callback associated with the service of the wire


setTargetWire

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


addMapping

void addMapping(Object messageId,
                Object fromAddress)
Creates an association between a message id and the address of the SCAObject that the corresponding message originates from


retrieveMapping

Object retrieveMapping(Object messageId)
Retrieves the SCAObject address that is associated with a message id


removeMapping

void removeMapping(Object messageId)
Removes an association between a message id and the address of the SCAObject that the corresponding message originates from


Apache Tuscany SCA Kernel Sub-Project

-