org.apache.avalon.composition.data.builder
Class XMLProfileCreator
java.lang.Object
org.apache.avalon.composition.data.builder.XMLProfileCreator
- Direct Known Subclasses:
- XMLContainmentProfileCreator, XMLDeploymentProfileCreator
- public abstract class XMLProfileCreator
- extends Object
- Version:
- $Revision: 1.1.1.1 $ $Date: 2003/08/31 14:29:53 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLProfileCreator
public XMLProfileCreator()
getName
protected String getName(String base,
Configuration config,
String defaultName)
- Get the profile name.
- Parameters:
config
- a configuration fragment describing the profile.
getActivationPolicy
protected boolean getActivationPolicy(Configuration config)
- Get the activation policy from a configuration. If no activation attribute
is present the value return defaults to FALSE (i.e. activation is deferred).
- Parameters:
config
- a configuration fragment holding a activation attribute
- Returns:
- TRUE is the value of the activation attribute is 'true' or 'startup'
otherwise the return value is FALSE
getActivationPolicy
protected boolean getActivationPolicy(Configuration config,
boolean fallback)
- Get the activation policy from a configuration.
- Parameters:
config
- a configuration fragment holding a activation attributefallback
- the default policy
- Returns:
- activation policy
getCategoriesDirective
public CategoriesDirective getCategoriesDirective(Configuration config,
String name)
throws ConfigurationException
- Throws:
ConfigurationException
getCategoryDirective
public CategoryDirective getCategoryDirective(Configuration config)
throws ConfigurationException
- Throws:
ConfigurationException
Copyright © Apache Software Foundation. All Rights Reserved.