public interface ServiceProxyAccessor extends Remote
This interface is typically implemented by a service implementation
and/or it's remote activatable reference, if any, to allow the service
to return the object of its choice for a client-side reference.
When a non-activatable service is created,
NonActivatableServiceDescriptor#create(net.jini.config.Configuration)
NonActivatableServiceDescriptor.create(),
returns the result from <impl>.getServiceProxy(),
if supported, where <impl> is the service implementation
instance.
When an activatable service is created,
SharedActivatableServiceDescriptor#create(net.jini.config.Configuration)
SharedActivatableServiceDescriptor.create(),
returns the result of <act_ref>.getServiceProxy(),
if supported, where <act_ref> is the service reference
returned by the call to
ActivationID.activate().
see org.apache.river.start.NonActivatableServiceDescriptor
see org.apache.river.start.SharedActivatableServiceDescriptorActivationID| Modifier and Type | Method and Description |
|---|---|
Object |
getServiceProxy()
Returns a proxy object for this object.
|
Object getServiceProxy() throws RemoteException
null.RemoteException - if a connection problem occurs.Copyright © 2016–2018. All rights reserved.