public final class ThreadedServiceModel extends AbstractServiceModelImpl
SingletonServiceModel
, this method returns a
proxy (implementing the service interface); unlike SingletonServiceModel, it always
returns the proxy. Invoking a service method on the proxy constructs a service implementation and
binds it to the current thread.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 |
---|
ThreadedServiceModel(ConstructableServicePoint servicePoint) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getService()
Always returns the service proxy.
|
java.lang.Object |
getServiceImplementationForCurrentThread()
Invoked by the proxy to return the active service impl for this thread, constructing it as
necessary.
|
void |
instantiateService()
Invokes
getServiceImplementationForCurrentThread() to force the creation of the
service implementation. |
addInterceptors, constructBridgeProxy, constructCoreServiceImplementation, constructNewServiceImplementation, constructServiceImplementation, getServicePoint, registerWithShutdownCoordinator
protected static final java.lang.String SERVICE_ACCESSOR_METHOD_NAME
public ThreadedServiceModel(ConstructableServicePoint servicePoint)
public java.lang.Object getService()
public java.lang.Object getServiceImplementationForCurrentThread()
public void instantiateService()
getServiceImplementationForCurrentThread()
to force the creation of the
service implementation.