net.larsan.urd.conf
Interface ComponentFactory

All Known Implementing Classes:
CmdServerFactory, DirectoryContainerFactory

public interface ComponentFactory

A component factory create Urd components from DOM specifications. A DOM element declaring a "factoryClass" attribute will case that factory to be created and subsequently invoked.

The invokation parameters is takes from the docuent where the component element was specified. The attributes of the declaring element will be given as a property collection and child elements as a mutable Node

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 java.lang.Object createComponent(java.util.Properties attributes)
          Create object.
 java.lang.Object createComponent(java.util.Properties attributes, org.w3c.dom.NodeList settings)
          Create object.
 

Method Detail

createComponent

public java.lang.Object createComponent(java.util.Properties attributes)
                                 throws ConfigurationException
Create object. The attributes from the declaring element is given as a property object.

Returns:
The created object
ConfigurationException

createComponent

public java.lang.Object createComponent(java.util.Properties attributes,
                                        org.w3c.dom.NodeList settings)
                                 throws ConfigurationException
Create object. The attributes from the declaring element is given as a property object and sub-element as a mutable NodeList

Parameters:
settings - Component settings as a node list, may be null
Returns:
The created object
ConfigurationException