public final class ComponentHandlerMetaData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVATION_BACKGROUND
Component activation should be initiated during container
initialization, but can be done asynchronously in a background
thread.
|
static int |
ACTIVATION_INLINE
Component activation should be performed during container initialization.
|
static int |
ACTIVATION_LAZY
Component activation will be delayed until the first time the
component is looked up.
|
private int |
m_activation |
private java.lang.String |
m_classname |
private org.apache.avalon.framework.configuration.Configuration |
m_configuration |
private java.lang.String |
m_name |
| Constructor and Description |
|---|
ComponentHandlerMetaData(java.lang.String name,
java.lang.String classname,
org.apache.avalon.framework.configuration.Configuration configuration,
boolean lazyActivation)
Deprecated.
in favor of construction which takes an integer activation.
|
ComponentHandlerMetaData(java.lang.String name,
java.lang.String classname,
org.apache.avalon.framework.configuration.Configuration configuration,
int activation)
Creation of a new impl handler meta data instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActivation()
Returns the handler activation policy
|
java.lang.String |
getClassname()
Returns the handler classname
|
org.apache.avalon.framework.configuration.Configuration |
getConfiguration()
Returns the handler configuration
|
java.lang.String |
getName()
Returns the handler name
|
boolean |
isLazyActivation()
Deprecated.
in favor of getActivation()
|
public static final int ACTIVATION_INLINE
public static final int ACTIVATION_BACKGROUND
public static final int ACTIVATION_LAZY
private final java.lang.String m_name
private final java.lang.String m_classname
private final org.apache.avalon.framework.configuration.Configuration m_configuration
private final int m_activation
public ComponentHandlerMetaData(java.lang.String name,
java.lang.String classname,
org.apache.avalon.framework.configuration.Configuration configuration,
int activation)
name - the handler nameclassname - the handler classnameconfiguration - the handler configurationactivation - the activation policy, one of
ComponentHandlerMetaData.ACTIVATION_BACKGROUND,
ComponentHandlerMetaData.ACTIVATION_INLINE,
ComponentHandlerMetaData.ACTIVATION_LAZY.public ComponentHandlerMetaData(java.lang.String name,
java.lang.String classname,
org.apache.avalon.framework.configuration.Configuration configuration,
boolean lazyActivation)
name - the handler nameclassname - the handler classnameconfiguration - the handler configurationlazyActivation - the activation policy, true implies
ACTIVATION_LAZY, and false implies
ACTIVATION_BACKGROUNDpublic java.lang.String getName()
public java.lang.String getClassname()
public org.apache.avalon.framework.configuration.Configuration getConfiguration()
public int getActivation()
public boolean isLazyActivation()