net.larsan.urd.impl
Class DirectoryContainerFactory

java.lang.Object
  |
  +--net.larsan.urd.conf.AttributeReflector
        |
        +--net.larsan.urd.impl.DirectoryContainerFactory
All Implemented Interfaces:
ComponentFactory

public class DirectoryContainerFactory
extends AttributeReflector
implements ComponentFactory

This factory creates directory containers. It needs a number of objects placed in the JNDI context before invoking. The needed objects are:

      /urd/root
      /urd/config (configuration file object)
      /urd/handler (current error handler)
      /urd/classloader/service (service root classloader)
      /urd/classloader/shared (shared services class loader)
 

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

Constructor Summary
DirectoryContainerFactory()
           
 
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.
 
Methods inherited from class net.larsan.urd.conf.AttributeReflector
reflectAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryContainerFactory

public DirectoryContainerFactory()
Method Detail

createComponent

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

Specified by:
createComponent in interface ComponentFactory
Returns:
The created object
ConfigurationException

createComponent

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

Specified by:
createComponent in interface ComponentFactory
Parameters:
settings - Component settings as a node list, may be null
Returns:
The created object
ConfigurationException