|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider
public class RMIServiceBindingProvider
Implementation of a Service for the RMIBinding.
| Nested Class Summary | |
|---|---|
protected class |
RMIServiceBindingProvider.RMIServiceClassLoader
|
| Constructor Summary | |
|---|---|
RMIServiceBindingProvider(RuntimeComponent rc,
RuntimeComponentService rcs,
RMIBinding binding,
RMIHost rmiHost)
|
|
| Method Summary | |
|---|---|
protected java.rmi.Remote |
createRmiService(Interface serviceInterface)
|
protected byte[] |
generateRemoteInterface(java.lang.Class serviceInterface)
if the interface of the component whose serviceBindings must be exposed as RMI Service, does not implement java.rmi.Remote, then generate such an interface. |
InterfaceContract |
getBindingInterfaceContract()
Get the effective interface contract imposed by the binding. |
protected int |
getPort(java.lang.String port)
|
protected java.lang.Class<?> |
getTargetJavaClass(Interface targetInterface)
|
protected java.lang.Object |
invokeTarget(Operation op,
java.lang.Object[] args)
|
void |
start()
This method will be invoked when the component service binding is activated. |
void |
stop()
This method will be invoked when the component service binding is deactivated. |
boolean |
supportsOneWayInvocation()
For bindings that invoke one-way callback operations asynchronously, there is no need to perform a thread switch before calling the invoker. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RMIServiceBindingProvider(RuntimeComponent rc,
RuntimeComponentService rcs,
RMIBinding binding,
RMIHost rmiHost)
| Method Detail |
|---|
public void start()
ServiceBindingProvider
start in interface ServiceBindingProviderpublic void stop()
ServiceBindingProvider
stop in interface ServiceBindingProviderprotected int getPort(java.lang.String port)
protected java.rmi.Remote createRmiService(Interface serviceInterface)
protected java.lang.Object invokeTarget(Operation op,
java.lang.Object[] args)
throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetExceptionprotected byte[] generateRemoteInterface(java.lang.Class serviceInterface)
protected java.lang.Class<?> getTargetJavaClass(Interface targetInterface)
public InterfaceContract getBindingInterfaceContract()
ServiceBindingProvider
getBindingInterfaceContract in interface ServiceBindingProviderpublic boolean supportsOneWayInvocation()
ServiceBindingProvider
supportsOneWayInvocation in interface ServiceBindingProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||