Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.wire
Interface RuntimeWire

All Known Subinterfaces:
InboundWire, OutboundWire

public interface RuntimeWire

The base wire type used to connect references and services

Version:
$$Rev: 447246 $$ $$Date: 2006-09-17 22:22:11 -0700 (Sun, 17 Sep 2006) $$

Method Summary
 void addInterface(Class<?> claz)
          Adds an interface type generated proxies implement
 SCAObject getContainer()
          Returns the SCAObject that contains this wire
 ServiceContract getServiceContract()
          Returns the service contract associated with the wire
 Object getTargetService()
          Returns the non-proxied target instance for this wire
 boolean isOptimizable()
          Returns true if the wire and all of its interceptors and handlers can be optimized
 void setContainer(SCAObject container)
          Sets the name of the SCAObject that contains this wire
 void setServiceContract(ServiceContract contract)
          Sets the contract associated with the wire
 

Method Detail

getTargetService

Object getTargetService()
                        throws TargetException
Returns the non-proxied target instance for this wire

Throws:
TargetException

getServiceContract

ServiceContract getServiceContract()
Returns the service contract associated with the wire

Returns:
the service contract associated with the wire

setServiceContract

void setServiceContract(ServiceContract contract)
Sets the contract associated with the wire

Parameters:
contract - the contract associated with the wire

addInterface

void addInterface(Class<?> claz)
Adds an interface type generated proxies implement


isOptimizable

boolean isOptimizable()
Returns true if the wire and all of its interceptors and handlers can be optimized


getContainer

SCAObject getContainer()
Returns the SCAObject that contains this wire


setContainer

void setContainer(SCAObject container)
Sets the name of the SCAObject that contains this wire


Apache Tuscany SCA Kernel Sub-Project

-