public class PooledServiceModel extends AbstractServiceModelImpl
threaded service model
,
except that, once created, services are pooled for later use.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 |
---|
PooledServiceModel(ConstructableServicePoint servicePoint) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getService()
Invoked by the service extension point to obtain the service implementation.
|
java.lang.Object |
getServiceImplementationForCurrentThread() |
void |
instantiateService()
Invokes
getServiceImplementationForCurrentThread() to instantiate an instance of the
service. |
addInterceptors, constructBridgeProxy, constructCoreServiceImplementation, constructNewServiceImplementation, constructServiceImplementation, getServicePoint, registerWithShutdownCoordinator
protected static final java.lang.String SERVICE_ACCESSOR_METHOD_NAME
public PooledServiceModel(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 getServiceImplementationForCurrentThread()
public void instantiateService()
getServiceImplementationForCurrentThread()
to instantiate an instance of the
service.