org.apache.hivemind.impl.servicemodel
Class AbstractServiceModelImpl
java.lang.Object
|
+--org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
- All Implemented Interfaces:
- ServiceModel
- Direct Known Subclasses:
- PooledServiceModel, PrimitiveServiceModel, SingletonServiceModel, ThreadedServiceModel
- public abstract class AbstractServiceModelImpl
- extends java.lang.Object
- implements ServiceModel
Base class for implementing org.apache.hivemind.ServiceModel
.
- Author:
- Howard Lewis Ship
Field Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
protected final 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. Subclasses should make
use of this Log as well.
AbstractServiceModelImpl
public AbstractServiceModelImpl(ConstructableServicePoint servicePoint)
addInterceptors
protected java.lang.Object addInterceptors(java.lang.Object core)
constructCoreServiceImplementation
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.
constructServiceImplementation
protected java.lang.Object constructServiceImplementation()
- Constructs the service implementation; this is invoked
from
org.apache.hivemind.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.
constructNewServiceImplementation
protected java.lang.Object constructNewServiceImplementation()
- Constructs a new implementation of the service, starting with
a core implementation, then adding any interceptors.
getServicePoint
public ConstructableServicePoint getServicePoint()