|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
public abstract class AbstractServiceModelImpl
Base class for implementing ServiceModel.
| 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. |
| Fields inherited from interface org.apache.hivemind.internal.ServiceModel |
|---|
POOLED, PRIMITIVE, SINGLETON, THREADED |
| Constructor Summary | |
|---|---|
AbstractServiceModelImpl(ConstructableServicePoint servicePoint)
|
|
| Method Summary | |
|---|---|
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 ImplementationConstructor), 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hivemind.internal.ServiceModel |
|---|
getService, instantiateService |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log _log
| Constructor Detail |
|---|
public AbstractServiceModelImpl(ConstructableServicePoint servicePoint)
| Method Detail |
|---|
protected java.lang.Object addInterceptors(java.lang.Object core)
protected java.lang.Object constructCoreServiceImplementation()
ImplementationConstructor), 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||