public final class ProxyUtils extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELEGATE_ACCESSOR_METHOD_NAME |
static java.lang.String |
SERVICE_ACCESSOR_METHOD_NAME |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
createDelegatingProxy(java.lang.String type,
ServiceModel serviceModel,
java.lang.String delegationMethodName,
ServicePoint servicePoint)
Creates a class that implements the service interface.
|
static RegistryShutdownListener |
createOuterProxy(java.lang.Object delegate,
ServicePoint servicePoint)
Constructs an outer proxy (for the threaded or pooled service).
|
public static final java.lang.String SERVICE_ACCESSOR_METHOD_NAME
public static final java.lang.String DELEGATE_ACCESSOR_METHOD_NAME
public static java.lang.Object createDelegatingProxy(java.lang.String type, ServiceModel serviceModel, java.lang.String delegationMethodName, ServicePoint servicePoint)
public static RegistryShutdownListener createOuterProxy(java.lang.Object delegate, ServicePoint servicePoint)
The outer proxy is a RegistryShutdownListener
; it can be registered for
notifications and will respond by throwing an exception when service methods are invoked.
delegate
- An object, implementing the service interface, that the proxy should delegate to.servicePoint
- for which the proxy is being constructed