org.openejb.alt.assembler.classic.xml
Class DomOpenEjbConfigurationFactory

java.lang.Object
  extended by org.openejb.alt.assembler.classic.xml.DomOpenEjbConfigurationFactory
All Implemented Interfaces:
OpenEjbConfigurationFactory

public class DomOpenEjbConfigurationFactory
extends java.lang.Object
implements OpenEjbConfigurationFactory

Factory for creating an instance of the OpenEjbConfiguration using DOM and and XML configuration file

DomOpenEjbConfigurationFactory is the default OpenEjbConfigurationFactory, which creates an OpenEjbConfiguration object based on XML config files located on the local system.

The OpenEjbConfiguration object structure provides the inforamtion about the configuration of OpenEJB and the container system and is used by the org.openejb.alt.assembler.classic.Assembler to build a running unstance of OpenEJB.

Other OpenEjbConfigurationFactory implementations can be created that might populate this object using a different approach. Other usefull implementations might be:

If you are interested in creating alternate an OpenEjbConfigurationFactory to do any of the above techniques or a new approach, email the OpenEJB Developer list with a description of the new OpenEjbConfigurationFactory implementation.

Author:
David Blevins, Richard Monson-Haefel
See Also:
Assembler, Assembler, OpenEjbConfiguration, OpenEjbConfigurationFactory

Constructor Summary
DomOpenEjbConfigurationFactory()
           
 
Method Summary
 OpenEjbConfiguration getOpenEjbConfiguration()
           
 void init(java.util.Properties props)
          Initializes the OpenEjbConfiguration with the XML config file specified by the value of EnvProps.CONFIGURATION in the environment variables used to construct this container system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomOpenEjbConfigurationFactory

public DomOpenEjbConfigurationFactory()
Method Detail

init

public void init(java.util.Properties props)
          throws OpenEJBException
Initializes the OpenEjbConfiguration with the XML config file specified by the value of EnvProps.CONFIGURATION in the environment variables used to construct this container system.

Specified by:
init in interface OpenEjbConfigurationFactory
Parameters:
props - A Properties object containing the EnvProps#CONFIGURATION entry
Throws:
OpenEJBException
OpenEJBException - if there was a problem parsing the XML file, the XML file is invalid or the XML file could not be found.
See Also:
OpenEjbConfiguration, EnvProps.CONFIGURATION

getOpenEjbConfiguration

public OpenEjbConfiguration getOpenEjbConfiguration()
                                             throws OpenEJBException
Specified by:
getOpenEjbConfiguration in interface OpenEjbConfigurationFactory
Throws:
OpenEJBException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.