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

java.lang.Object
  extended byorg.apache.avalon.composition.data.builder.XMLProfileCreator
      extended byorg.apache.avalon.composition.data.builder.XMLContainmentProfileCreator

public class XMLContainmentProfileCreator
extends XMLProfileCreator

Handles internalization of an XML based description of a ContainmentProfile from a Configuration object.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:29:50 $
Author:
Avalon Development Team

Constructor Summary
XMLContainmentProfileCreator()
           
 
Method Summary
 ContainmentProfile createContainmentProfile(Configuration config)
          Create a ContainmentProfile from a configuration
 FilesetDirective createFilesetDirective(Configuration config)
          Utility method to create a new fileset descriptor from a configuration instance.
protected  IncludeDirective createIncludeDirective(Configuration config)
          Utility method to create a new include directive from a configuration instance.
protected  IncludeDirective[] createIncludeDirectives(Configuration config)
          Utility method to create a set in include directives.
protected  Profile[] createProfiles(Configuration config)
          Return the set of profiles embedded in the supplied configuration.
 ServiceDirective[] createServiceDirectives(Configuration config)
          Resolve the logical services declared by a block directive.
 
Methods inherited from class org.apache.avalon.composition.data.builder.XMLProfileCreator
getActivationPolicy, getActivationPolicy, getCategoriesDirective, getCategoryDirective, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLContainmentProfileCreator

public XMLContainmentProfileCreator()
Method Detail

createContainmentProfile

public ContainmentProfile createContainmentProfile(Configuration config)
                                            throws Exception
Create a ContainmentProfile from a configuration

Parameters:
config - the partitition configuration
Returns:
the partition
Throws:
Exception - if a error occurs during profile creation

createFilesetDirective

public FilesetDirective createFilesetDirective(Configuration config)
                                        throws ConfigurationException
Utility method to create a new fileset descriptor from a configuration instance.

Parameters:
config - a configuration defining the fileset
Returns:
the fileset descriptor
Throws:
ConfigurationException - if the configuration is incomplete

createIncludeDirectives

protected IncludeDirective[] createIncludeDirectives(Configuration config)
                                              throws ConfigurationException
Utility method to create a set in include directives.

Parameters:
config - a configuration defining the fileset
Returns:
the includes
Throws:
ConfigurationException - if the configuration is incomplete

createIncludeDirective

protected IncludeDirective createIncludeDirective(Configuration config)
                                           throws ConfigurationException
Utility method to create a new include directive from a configuration instance.

Parameters:
config - a configuration defining the include directive
Returns:
the include directive
Throws:
ConfigurationException - if the configuration does not declare the name attribute

createProfiles

protected Profile[] createProfiles(Configuration config)
                            throws Exception
Return the set of profiles embedded in the supplied configuration.

Parameters:
config - a container or implementation configutation
Returns:
the set of profile
Throws:
Exception

createServiceDirectives

public ServiceDirective[] createServiceDirectives(Configuration config)
                                           throws MetaDataException
Resolve the logical services declared by a block directive.

Parameters:
config - the services configuration fragment
Returns:
the set of declared service descriptors
Throws:
MetaDataException


Copyright © Apache Software Foundation. All Rights Reserved.