|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.core.container.spring.avalon.ComponentInfo
Meta-information about an Avalon based component. This simple bean holds most information of a component defined in the Avalon based configuration files, like the configuration for the component, it's logger etc. Avalon supports different component models: MODEL_PRIMITIVE: Each time a component of this type is requested, a new instance is created. MODEL_SINGLETON: Only on component of this type exists per container. MODEL_POOLED: The container creates a pool of components for this type and serves a request out of this pool. If the pool exceeds, then the pool will create new instances which are not put into the pool, so the model "primitive" will be used.
Field Summary | |
static int |
MODEL_POOLED
Several instances are pooled by the container. |
static int |
MODEL_PRIMITIVE
New instance per lookup. |
static int |
MODEL_SINGLETON
One single instance per container. |
static int |
MODEL_UNKNOWN
The model of the component is unknown. |
Constructor Summary | |
ComponentInfo()
Create a new info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MODEL_UNKNOWN
public static final int MODEL_PRIMITIVE
public static final int MODEL_SINGLETON
public static final int MODEL_POOLED
Constructor Detail |
public ComponentInfo()
Method Detail |
public int getModel()
public void setModel(int model)
model
- The model to set.public String getDestroyMethodName()
public void setDestroyMethodName(String destroyMethod)
destroyMethod
- The destroyMethod to set.public String getInitMethodName()
public void setInitMethodName(String initMethod)
initMethod
- The initMethod to set.public String getPoolInMethodName()
public void setPoolInMethodName(String poolMethod)
poolMethod
- The poolInMethod name to set.public String getPoolOutMethodName()
public void setPoolOutMethodName(String poolMethod)
poolMethod
- The poolOutMethod name to set.public String getComponentClassName()
public void setComponentClassName(String serviceClassName)
serviceClassName
- The serviceClassName to set.public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration
- The configuration to set.public String getLocation()
public String toString()
Object.toString()
public void fill(Configuration config)
public String getLoggerCategory()
public void setLoggerCategory(String loggerCategory)
loggerCategory
- The loggerCategory to set.public void setRole(String role)
role
- The role to set.public String getRole()
public Parameters getParameters()
public void setParameters(Parameters parameters)
public String getAlias()
public void setAlias(String alias)
public boolean isSelector()
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public ComponentInfo copy()
public boolean isLazyInit()
public void setLazyInit(boolean lazyInit)
public Configuration getProcessedConfiguration()
public void setProcessedConfiguration(Configuration processedConfiguration)
public boolean hasConfiguredLazyInit()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |