public final class SingletonServiceModel extends AbstractServiceModelImpl
AbstractServiceModelImpl
which supports
creation of a singleton service proxy (deferring the actual construction of the service until
absolutely necessary). This is used with the singleton service type, which is the default.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
SERVICE_ACCESSOR_METHOD_NAME
Name of a method in the deferred proxy that is used to obtain the constructed service.
|
_log
Constructor and Description |
---|
SingletonServiceModel(ConstructableServicePoint servicePoint) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getActualServiceImplementation()
This is invoked by the proxy to create the actual implementation.
|
java.lang.Object |
getService()
Invoked by the service extension point to obtain the service implementation.
|
void |
instantiateService()
Forces the core service implementation (and any interceptors) to be fully instantiated
immediately, rather than waiting for the first service method invocation.
|
addInterceptors, constructBridgeProxy, constructCoreServiceImplementation, constructNewServiceImplementation, constructServiceImplementation, getServicePoint, registerWithShutdownCoordinator
protected static final java.lang.String SERVICE_ACCESSOR_METHOD_NAME
public SingletonServiceModel(ConstructableServicePoint servicePoint)
public java.lang.Object getService()
ServiceModel
This method is only invoked once; the returned value is used from that point on (in all threads, by all callers). Most models return a proxy that takes care of realizing the service (actually creating the service, configuring it, and wrapping it with interceptors) only when needed.
public java.lang.Object getActualServiceImplementation()
public void instantiateService()
ServiceModel