org.openejb.alt.assembler.classic.xml
Class DomOpenEjbConfigurationFactory
java.lang.Object
|
+--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:
- Populating the OpenEjbConfiguration from values in a RDBMS.
- Populating the OpenEjbConfiguration from values in a Properties file.
- Retrieving the OpenEjbConfiguration from a ODBMS.
- Creating the OpenEjbConfiguration using a JavaBeans enabled editing tool or wizard.
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.
- See Also:
Assembler
,
Assembler
,
OpenEjbConfiguration
,
OpenEjbConfigurationFactory
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomOpenEjbConfigurationFactory
public DomOpenEjbConfigurationFactory()
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
- 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
,
org.openejb.EnvProps.CONFIGURATION
getOpenEjbConfiguration
public OpenEjbConfiguration getOpenEjbConfiguration()
throws OpenEJBException
- Specified by:
getOpenEjbConfiguration
in interface OpenEjbConfigurationFactory