public abstract class AbstractServiceModelImpl extends java.lang.Object implements ServiceModel
ServiceModel
.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
_log
This log is created from the log's service id, which is the appropriate place to log any
messages related to creating (or managing) the service implementation, proxy, etc.
|
Constructor and Description |
---|
AbstractServiceModelImpl(ConstructableServicePoint servicePoint) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
addInterceptors(java.lang.Object core) |
protected java.lang.Object |
constructBridgeProxy(java.lang.Object service)
Need to bridge from the service interface to the actual type.
|
protected java.lang.Object |
constructCoreServiceImplementation()
Constructs the core service implementation (by invoking the
ServiceImplementationConstructor ), and checks that the result is non-null and
assignable to the service interface. |
protected java.lang.Object |
constructNewServiceImplementation()
Constructs a new implementation of the service, starting with a core implementation, then
adding any interceptors.
|
protected java.lang.Object |
constructServiceImplementation()
Constructs the service implementation; this is invoked from
ServicePoint.getService(Class) (for singletons), or from
the generated deferrable proxy (for most service models). |
ConstructableServicePoint |
getServicePoint() |
protected void |
registerWithShutdownCoordinator(java.lang.Object service)
Invoked after creating a service implementation object; if the object implements
RegistryShutdownListener , then the object is added as a
listener. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getService, instantiateService
protected final org.apache.commons.logging.Log _log
public AbstractServiceModelImpl(ConstructableServicePoint servicePoint)
protected java.lang.Object addInterceptors(java.lang.Object core)
protected java.lang.Object constructCoreServiceImplementation()
ServiceImplementationConstructor
), and checks that the result is non-null and
assignable to the service interface.protected java.lang.Object constructServiceImplementation()
ServicePoint.getService(Class)
(for singletons), or from
the generated deferrable proxy (for most service models). Primarily, invokes
constructNewServiceImplementation()
from within a block that checks for recursive
builds.protected java.lang.Object constructNewServiceImplementation()
public ConstructableServicePoint getServicePoint()
protected java.lang.Object constructBridgeProxy(java.lang.Object service)
protected void registerWithShutdownCoordinator(java.lang.Object service)
RegistryShutdownListener
, then the object is added as a
listener.service
- the service implementationShutdownCoordinator