org.apache.tuscany.spi.implementation.java
Class JavaMappedService
java.lang.Object
org.apache.tuscany.spi.model.ModelObject
org.apache.tuscany.spi.model.ServiceDefinition
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) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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)
-