Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.implementation.java
Class JavaMappedService

java.lang.Object
  extended by org.apache.tuscany.spi.model.ModelObject
      extended by org.apache.tuscany.spi.model.ServiceDefinition
          extended by org.apache.tuscany.spi.implementation.java.JavaMappedService

public class JavaMappedService
extends ServiceDefinition

A ServiceDefinition definition that is mapped to a Java interface. The mapped interface is not required to be the same as the interface specified in the service contract. This is to allow the service contract to be specified using different interface definition languages or, in the case were the IDL is Java, to allow the service definition to be loaded from a different classloader.

Version:
$Rev: 434281 $ $Date: 2006-08-23 18:43:12 -0700 (Wed, 23 Aug 2006) $

Constructor Summary
JavaMappedService()
           
JavaMappedService(Class<?> serviceInterface)
           
JavaMappedService(String name, ServiceContract contract, boolean remotable)
           
JavaMappedService(String name, ServiceContract contract, boolean remotable, String callbackRefName, Member callbackMember)
           
JavaMappedService(String name, ServiceContract contract, Class<?> serviceInterface, boolean remotable)
           
 
Method Summary
 Member getCallbackMember()
           
 Class<?> getServiceInterface()
          Returns the Java interface for this service.
 void setCallbackMember(Member callbackMember)
           
 void setServiceInterface(Class<?> serviceInterface)
          Sets the Java interface for this service.
 
Methods inherited from class org.apache.tuscany.spi.model.ServiceDefinition
getCallbackReferenceName, getName, getServiceContract, isRemotable, setCallbackReferenceName, setName, setRemotable, setServiceContract
 
Methods inherited from class org.apache.tuscany.spi.model.ModelObject
getExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMappedService

public JavaMappedService()

JavaMappedService

public JavaMappedService(Class<?> serviceInterface)

JavaMappedService

public JavaMappedService(String name,
                         ServiceContract contract,
                         boolean remotable)

JavaMappedService

public JavaMappedService(String name,
                         ServiceContract contract,
                         boolean remotable,
                         String callbackRefName,
                         Member callbackMember)

JavaMappedService

public JavaMappedService(String name,
                         ServiceContract contract,
                         Class<?> serviceInterface,
                         boolean remotable)
Method Detail

getServiceInterface

public Class<?> getServiceInterface()
Returns the Java interface for this service. This may be different from the interface that defines the service contract.

Returns:
the Java interface for this service

setServiceInterface

public void setServiceInterface(Class<?> serviceInterface)
Sets the Java interface for this service. This may be different from the interface used to define the service contract.

Parameters:
serviceInterface - the Java interface for this service

getCallbackMember

public Member getCallbackMember()

setCallbackMember

public void setCallbackMember(Member callbackMember)

Apache Tuscany SCA Kernel Sub-Project

-