org.apache.avalon.fortress.impl
Class ComponentHandlerMetaData

java.lang.Object
  extended byorg.apache.avalon.fortress.impl.ComponentHandlerMetaData

public final class ComponentHandlerMetaData
extends java.lang.Object

A class holding metadata about a component handler.

Version:
$Revision: 1.12 $ $Date: 2004/02/28 15:16:24 $
Author:
Avalon Development Team

Field Summary
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.
 
Constructor Summary
ComponentHandlerMetaData(java.lang.String name, java.lang.String classname, Configuration configuration, boolean lazyActivation)
          Deprecated. in favor of construction which takes an integer activation.
ComponentHandlerMetaData(java.lang.String name, java.lang.String classname, Configuration configuration, int activation)
          Creation of a new impl handler meta data instance.
 
Method Summary
 int getActivation()
          Returns the handler activation policy
 java.lang.String getClassname()
          Returns the handler classname
 Configuration getConfiguration()
          Returns the handler configuration
 java.lang.String getName()
          Returns the handler name
 boolean isLazyActivation()
          Deprecated. in favor of getActivation()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVATION_INLINE

public static final int ACTIVATION_INLINE
Component activation should be performed during container initialization.

See Also:
Constant Field Values

ACTIVATION_BACKGROUND

public static final int ACTIVATION_BACKGROUND
Component activation should be initiated during container initialization, but can be done asynchronously in a background thread.

See Also:
Constant Field Values

ACTIVATION_LAZY

public static final int ACTIVATION_LAZY
Component activation will be delayed until the first time the component is looked up.

See Also:
Constant Field Values
Constructor Detail

ComponentHandlerMetaData

public ComponentHandlerMetaData(java.lang.String name,
                                java.lang.String classname,
                                Configuration configuration,
                                int activation)
Creation of a new impl handler meta data instance.

Parameters:
name - the handler name
classname - the handler classname
configuration - the handler configuration
activation - the activation policy, one of ComponentHandlerMetaData.ACTIVATION_BACKGROUND, ComponentHandlerMetaData.ACTIVATION_INLINE, ComponentHandlerMetaData.ACTIVATION_LAZY.

ComponentHandlerMetaData

public ComponentHandlerMetaData(java.lang.String name,
                                java.lang.String classname,
                                Configuration configuration,
                                boolean lazyActivation)
Deprecated. in favor of construction which takes an integer activation.

Creation of a new impl handler meta data instance.

Parameters:
name - the handler name
classname - the handler classname
configuration - the handler configuration
lazyActivation - the activation policy, true implies ACTIVATION_LAZY, and false implies ACTIVATION_BACKGROUND
Method Detail

getName

public java.lang.String getName()
Returns the handler name

Returns:
the handler name

getClassname

public java.lang.String getClassname()
Returns the handler classname

Returns:
the classname

getConfiguration

public Configuration getConfiguration()
Returns the handler configuration

Returns:
the configuration

getActivation

public int getActivation()
Returns the handler activation policy

Returns:
the activation policy

isLazyActivation

public boolean isLazyActivation()
Deprecated. in favor of getActivation()

Returns the handler activation policy

Returns:
the activation policy


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.