public interface ServiceProxyAccessor
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()
,
returns the result from <impl>.getServiceProxy()
,
if supported, where <impl>
is the service implementation
instance.
When an activatable service is created,
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()
.
NonActivatableServiceDescriptor
,
SharedActivatableServiceDescriptor
,
ActivationID
Modifier and Type | Method and Description |
---|---|
Object |
getServiceProxy()
Returns a proxy object for this object.
|
Object getServiceProxy() throws RemoteException
null
.RemoteException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.