Uses of Interface
org.apache.avalon.framework.configuration.Configuration
-
Packages that use Configuration Package Description org.apache.avalon.framework.configuration Component configuration interfaces and XML-based implementations.org.apache.avalon.framework.container Utilities supporting execution of component lifecycle stages.org.apache.avalon.framework.parameters Interfaces supporting the supply of flat configuration information. -
-
Uses of Configuration in org.apache.avalon.framework.configuration
Subinterfaces of Configuration in org.apache.avalon.framework.configuration Modifier and Type Interface Description interface
MutableConfiguration
A read/write extension of the Configuration interface.Classes in org.apache.avalon.framework.configuration that implement Configuration Modifier and Type Class Description class
AbstractConfiguration
This is an abstractConfiguration
implementation that deals with methods that can be abstracted away from underlying implementations.class
DefaultConfiguration
This is the defaultConfiguration
implementation.class
DefaultImmutableConfiguration
An immutable implementation of theConfiguration
interface.Fields in org.apache.avalon.framework.configuration declared as Configuration Modifier and Type Field Description protected static Configuration[]
DefaultConfiguration. EMPTY_ARRAY
An empty (length zero) array of configuration objects.protected static Configuration[]
DefaultImmutableConfiguration. EMPTY_ARRAY
An empty (length zero) array of configuration objects.private Configuration
ConfigurationException. m_config
private Configuration
NamespacedSAXConfigurationHandler. m_configuration
private Configuration
SAXConfigurationHandler. m_configuration
Methods in org.apache.avalon.framework.configuration that return Configuration Modifier and Type Method Description Configuration
DefaultConfigurationBuilder. build(java.io.InputStream inputStream)
Build a configuration object using an InputStream.Configuration
DefaultConfigurationBuilder. build(java.io.InputStream inputStream, java.lang.String systemId)
Build a configuration object using an InputStream; supplying a systemId to make messages about all kinds of errors more meaningfull.Configuration
DefaultConfigurationBuilder. build(java.lang.String uri)
Build a configuration object using an URIConfiguration
DefaultConfigurationBuilder. build(org.xml.sax.InputSource input)
Build a configuration object using an XML InputSource objectConfiguration
DefaultConfigurationBuilder. buildFromFile(java.io.File file)
Build a configuration object from a file using a File object.Configuration
DefaultConfigurationBuilder. buildFromFile(java.lang.String filename)
Build a configuration object from a file using a filename.Configuration
AbstractConfiguration. getChild(java.lang.String name)
Return the firstConfiguration
object child of this associated with the given name.Configuration
AbstractConfiguration. getChild(java.lang.String name, boolean createNew)
Return the firstConfiguration
object child of this associated with the given name.Configuration
Configuration. getChild(java.lang.String child)
Return a newConfiguration
instance encapsulating the specified child node.Configuration
Configuration. getChild(java.lang.String child, boolean createNew)
Return aConfiguration
instance encapsulating the specified child node.Configuration
DefaultConfiguration. getChild(java.lang.String name, boolean createNew)
Return the firstConfiguration
object child of this associated with the given name.Configuration
DefaultImmutableConfiguration. getChild(java.lang.String name, boolean createNew)
Return the firstConfiguration
object child of this associated with the given name.Configuration[]
Configuration. getChildren()
Return anArray
ofConfiguration
elements containing all node children.Configuration[]
Configuration. getChildren(java.lang.String name)
Return anArray
ofConfiguration
elements containing all node children with the specified name.Configuration[]
DefaultConfiguration. getChildren()
Return an array ofConfiguration
elements containing all node children.Configuration[]
DefaultConfiguration. getChildren(java.lang.String name)
Return an array ofConfiguration
objects children of this associated with the given name.Configuration[]
DefaultImmutableConfiguration. getChildren()
Return an array ofConfiguration
elements containing all node children.Configuration[]
DefaultImmutableConfiguration. getChildren(java.lang.String name)
Return an array ofConfiguration
objects children of this associated with the given name.Configuration
NamespacedSAXConfigurationHandler. getConfiguration()
Get the configuration object that was built.Configuration
SAXConfigurationHandler. getConfiguration()
Get the configuration object that was built.Configuration
ConfigurationException. getOffendingConfiguration()
static Configuration
ConfigurationUtil. toConfiguration(org.w3c.dom.Element element)
Convert a DOM Element tree into a configuration tree.Methods in org.apache.avalon.framework.configuration with parameters of type Configuration Modifier and Type Method Description void
DefaultConfiguration. addAll(Configuration other)
Add all the attributes, children and value from specified configuration element to current configuration element.void
DefaultConfiguration. addAll(Configuration other, boolean deepCopy)
Add all the attributes, children and value from specified configuration element to current configuration element.void
MutableConfiguration. addAll(Configuration other)
Add all the attributes, children and value from specified configuration element to current configuration element.void
DefaultConfiguration. addAllAttributes(Configuration other)
Add all attributes from specified configuration element to current configuration element.void
MutableConfiguration. addAllAttributes(Configuration other)
Add all attributes from specified configuration element to current configuration element.void
DefaultConfiguration. addAllChildren(Configuration other)
Add all childConfiguration
objects from specified configuration element to current configuration element.void
DefaultConfiguration. addAllChildren(Configuration other, boolean deepCopy)
Add all childConfiguration
objects from specified configuration element to current configuration element.void
MutableConfiguration. addAllChildren(Configuration other)
Add all childConfiguration
objects from specified configuration element to current configuration element.void
DefaultConfiguration. addChild(Configuration configuration)
Add a childConfiguration
to this configuration element.void
MutableConfiguration. addChild(Configuration configuration)
Add a childConfiguration
to this configuration element.private static boolean
ConfigurationUtil. areAttributesEqual(Configuration c1, Configuration c2)
Return true if the attributes of both configurations are equal.private static boolean
ConfigurationUtil. areChildrenEqual(Configuration c1, Configuration c2)
Return true if the children of both configurations are equal.private static boolean
ConfigurationUtil. areValuesEqual(Configuration c1, Configuration c2)
Return true if the values of two configurations are equal.void
Configurable. configure(Configuration configuration)
Pass theConfiguration
to theConfigurable
class.private static org.w3c.dom.Element
ConfigurationUtil. createElement(org.w3c.dom.Document document, Configuration configuration)
Create an DOMElement
from aConfiguration
object.static boolean
ConfigurationUtil. equals(Configuration c1, Configuration c2)
Test to see if two Configuration's can be considered the same.private static boolean
ConfigurationUtil. findMatchingChild(Configuration c, java.util.ArrayList matchAgainst)
Return true if find a matching child and remove child from list.void
Reconfigurable. reconfigure(Configuration configuration)
Describereconfigure
method here.void
DefaultConfiguration. removeChild(Configuration configuration)
Remove a childConfiguration
to this configuration element.void
MutableConfiguration. removeChild(Configuration configuration)
Remove a childConfiguration
to this configuration element.void
DefaultConfigurationSerializer. serialize(java.io.OutputStream outputStream, Configuration source)
Serialize the configuration object to an output stream.void
DefaultConfigurationSerializer. serialize(java.lang.String uri, Configuration source)
Serialize the configuration object to an output stream derived from an URI.java.lang.String
DefaultConfigurationSerializer. serialize(Configuration source)
Serialize the configuration object to a stringvoid
DefaultConfigurationSerializer. serialize(org.xml.sax.ContentHandler handler, Configuration source)
Serialize the configuration to a ContentHandlerprotected void
DefaultConfigurationSerializer. serializeElement(org.xml.sax.ContentHandler handler, org.xml.sax.helpers.NamespaceSupport namespaceSupport, Configuration element)
Serialize each Configuration element.void
DefaultConfigurationSerializer. serializeToFile(java.io.File file, Configuration source)
Serialize the configuration object to a file using a File object.void
DefaultConfigurationSerializer. serializeToFile(java.lang.String filename, Configuration source)
Serialize the configuration object to a file using a filename.static org.w3c.dom.Element
ConfigurationUtil. toElement(Configuration configuration)
Convert a configuration tree into a DOM Element tree.private MutableConfiguration
DefaultConfiguration. toMutable(Configuration child)
Convenience function to convert a child to a mutable configuration.static java.lang.String
ConfigurationUtil. toString(Configuration configuration)
Serialize the configuration object to a String.Constructors in org.apache.avalon.framework.configuration with parameters of type Configuration Constructor Description ConfigurationException(java.lang.String message, Configuration config)
Construct a newConfigurationException
instance.ConfigurationException(java.lang.String message, Configuration config, java.lang.Throwable throwable)
Construct a newConfigurationException
instance.ConfigurationException(Configuration config)
Construct a newConfigurationException
instance.DefaultConfiguration(Configuration config)
Shallow copy constructor, suitable for craeting a writable clone of a read-only configuration.DefaultConfiguration(Configuration config, boolean deepCopy)
Copy constructor, to create a clone of another configuration.DefaultImmutableConfiguration(Configuration config)
Deep copy constructor. -
Uses of Configuration in org.apache.avalon.framework.container
Methods in org.apache.avalon.framework.container with parameters of type Configuration Modifier and Type Method Description static void
ContainerUtil. configure(java.lang.Object object, Configuration configuration)
Configure specified object if it implements theConfigurable
interface. -
Uses of Configuration in org.apache.avalon.framework.parameters
Methods in org.apache.avalon.framework.parameters with parameters of type Configuration Modifier and Type Method Description static Parameters
Parameters. fromConfiguration(Configuration configuration)
Create aParameters
object from aConfiguration
object.static Parameters
Parameters. fromConfiguration(Configuration configuration, java.lang.String elementName)
Create aParameters
object from aConfiguration
object using the supplied element name.
-