|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.activation.impl.AbstractLifestyleManager
Abstract implentation class for a lifestyle handler.
Constructor Summary | |
AbstractLifestyleManager(ComponentModel model,
ComponentFactory factory)
Creation of a new instance. |
Method Summary | |
abstract void |
commission()
Commission the runtime handler. |
abstract void |
decommission()
Invokes the decommissioning phase. |
void |
finalize()
|
void |
finalize(Object instance)
Release and finalize the supplied object. |
protected ComponentFactory |
getComponentFactory()
|
protected ComponentModel |
getComponentModel()
|
protected Logger |
getLogger()
|
protected Reference |
getReference(Object instance)
|
protected abstract void |
handleRelease(Object instance)
|
protected abstract Object |
handleResolve()
|
void |
release(Object instance)
Release an object |
Object |
resolve()
Resolve a object to a value. |
Object |
resolve(boolean proxy)
Resolve a object to a value. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractLifestyleManager(ComponentModel model, ComponentFactory factory)
model
- the component modelfactory
- the component factoryMethod Detail |
public abstract void commission() throws Exception
commission
in interface Commissionable
Exception
- if a hanfdler commissioning error occurspublic abstract void decommission()
decommission
in interface Commissionable
public Object resolve() throws Exception
resolve
in interface Resolver
Exception
- if an error occurspublic Object resolve(boolean proxy) throws Exception
resolve
in interface Resolver
proxy
- if TRUE ruturn a proxied reference if the underlying component
suppports proxied representation otherwise return the raw component instance
Exception
- if an error occurspublic void release(Object instance)
release
in interface Resolver
instance
- the object to be releasedpublic void finalize(Object instance)
LifestyleManager
finalize
in interface LifestyleManager
instance
- the object to be releasedprotected abstract Object handleResolve() throws Exception
Exception
protected abstract void handleRelease(Object instance)
protected Logger getLogger()
protected ComponentModel getComponentModel()
protected ComponentFactory getComponentFactory()
protected Reference getReference(Object instance)
public void finalize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |