|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.core.container.ComponentFactory
Factory for Avalon based components.
Field Summary | |
protected Logger |
componentLogger
The component's logger, which may be different from the environment's logger |
protected Method |
configureSettingsMethod
|
protected Core |
core
|
protected Method |
destroyMethod
|
protected ComponentEnvironment |
environment
|
protected Method |
initMethod
|
protected Parameters |
parameters
The parameters for this component |
protected Method |
poolInMethod
|
protected Method |
poolOutMethod
|
protected Class |
serviceClass
|
protected ComponentInfo |
serviceInfo
|
Constructor Summary | |
ComponentFactory(ComponentEnvironment environment,
ComponentInfo info)
Construct a new component factory for the specified component. |
Method Summary | |
void |
decommission(Object component)
Destroy an instance |
void |
enteringPool(Object component)
Handle service specific methods for putting it into the pool |
void |
exitingPool(Object component)
Handle service specific methods for getting it out of the pool |
Class |
getCreatedClass()
|
Object |
newInstance()
Create a new instance |
protected void |
setupInstance(Object component)
Invoke the various lifecycle interfaces to setup a newly created component |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final ComponentInfo serviceInfo
protected final ComponentEnvironment environment
protected final Logger componentLogger
protected final Parameters parameters
protected final Class serviceClass
protected final Method initMethod
protected final Method destroyMethod
protected final Method poolInMethod
protected final Method poolOutMethod
protected Method configureSettingsMethod
protected Core core
Constructor Detail |
public ComponentFactory(ComponentEnvironment environment, ComponentInfo info) throws Exception
environment
- Describes the environment for the component.info
- Describes the configuration/settings for the component.Method Detail |
public final Object newInstance() throws Exception
Exception
protected void setupInstance(Object component) throws Exception
component
-
Exception
public Class getCreatedClass()
public void decommission(Object component) throws Exception
Exception
public void exitingPool(Object component) throws Exception
Exception
public void enteringPool(Object component) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |