|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.data.builder.XMLProfileCreator
org.apache.avalon.composition.data.builder.XMLDeploymentProfileCreator
Constructor Summary | |
XMLDeploymentProfileCreator()
|
Method Summary | |
DeploymentProfile |
createDeploymentProfile(Configuration config)
Creation of a DeploymentProfile from an XML configuration. |
DeploymentProfile |
createDeploymentProfile(String classname,
Configuration config,
String name)
Creation of a DeploymentProfile from an XML configuration. |
DeploymentProfile |
createDeploymentProfile(String base,
String classname,
Configuration config)
Creation of a DeploymentProfile from an XML configuration. |
protected int |
getCollectionPolicy(Configuration config)
Get the collection policy from a configuration. |
ContextDirective |
getContextDirective(Configuration config)
Utility method to create a new context directive. |
protected DependencyDirective |
getDependencyDirective(Configuration config)
|
protected DependencyDirective[] |
getDependencyDirectives(Configuration config)
|
protected EntryDirective[] |
getEntries(Configuration[] configs)
Utility method to create a set of entry directives. |
protected Parameter |
getParameter(Configuration config)
Utility method to create a new parameter directive. |
protected Parameters |
getParameters(Configuration config)
|
protected Parameter[] |
getParameters(Configuration[] configs)
Utility method to create a set of parameter directive. |
protected SelectionDirective |
getSelectionDirective(Configuration config)
|
protected StageDirective |
getStageDirective(Configuration config)
|
protected StageDirective[] |
getStageDirectives(Configuration config)
|
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 |
public XMLDeploymentProfileCreator()
Method Detail |
public DeploymentProfile createDeploymentProfile(Configuration config) throws Exception
DeploymentProfile
from an XML configuration.
config
- the configuration instance describing the component deployment scenario
Exception
public DeploymentProfile createDeploymentProfile(String base, String classname, Configuration config) throws Exception
DeploymentProfile
from an XML configuration.
base
- the default nameconfig
- the configuration describing the component deployment scenario
Exception
public DeploymentProfile createDeploymentProfile(String classname, Configuration config, String name) throws Exception
DeploymentProfile
from an XML configuration.
classname
- the name of the class identifying the underlying component typeconfig
- the configuration describing the component deployment scenario
Exception
protected int getCollectionPolicy(Configuration config)
config
- a configuration fragment holding a collection attribute
protected DependencyDirective[] getDependencyDirectives(Configuration config) throws ConfigurationException
ConfigurationException
protected DependencyDirective getDependencyDirective(Configuration config) throws ConfigurationException
ConfigurationException
protected StageDirective[] getStageDirectives(Configuration config) throws ConfigurationException
ConfigurationException
protected StageDirective getStageDirective(Configuration config) throws ConfigurationException
ConfigurationException
protected SelectionDirective getSelectionDirective(Configuration config) throws ConfigurationException
ConfigurationException
protected Parameters getParameters(Configuration config) throws ConfigurationException
ConfigurationException
public ContextDirective getContextDirective(Configuration config) throws ConfigurationException
config
- the context directive configuration
ConfigurationException
- if an error occursprotected EntryDirective[] getEntries(Configuration[] configs) throws ConfigurationException
configs
- the entry directive configurations
ConfigurationException
- if an error occursprotected Parameter[] getParameters(Configuration[] configs) throws ConfigurationException
configs
- the parameter directive configurations
ConfigurationException
- if an error occursprotected Parameter getParameter(Configuration config) throws ConfigurationException
config
- the parameter directive configuration
ConfigurationException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |