org.apache.avalon.composition.data.builder
Class XMLProfileCreator

java.lang.Object
  extended byorg.apache.avalon.composition.data.builder.XMLProfileCreator
Direct Known Subclasses:
XMLContainmentProfileCreator, XMLDeploymentProfileCreator

public abstract class XMLProfileCreator
extends Object

Version:
$Revision: 1.2 $ $Date: 2003/10/17 03:26:29 $
Author:
Avalon Development Team

Constructor Summary
XMLProfileCreator()
           
 
Method Summary
protected  boolean getActivationPolicy(Configuration config)
          Get the activation policy from a configuration.
protected  boolean getActivationPolicy(Configuration config, boolean fallback)
          Get the activation policy from a configuration.
 CategoriesDirective getCategoriesDirective(Configuration config, String name)
           
 CategoryDirective getCategoryDirective(Configuration config)
           
protected  String getName(String base, Configuration config, String defaultName)
          Get the profile name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLProfileCreator

public XMLProfileCreator()
Method Detail

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 attribute
fallback - 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.