org.jafer.databeans
Class DatabeanManagerFactoryConfig

java.lang.Object
  extended by org.jafer.databeans.DatabeanManagerFactoryConfig

public class DatabeanManagerFactoryConfig
extends java.lang.Object

This class extracts the config information for a DatabeanManagerFactory from the specified config file


Field Summary
private  org.w3c.dom.Node configRoot
          Stores a reference to the config root
private  DatabeanManagerFactory databeanManagerFactory
          Stores a reference to the data bean manager factory to use
protected static java.util.logging.Logger logger
          Stores a reference to the logger
 
Constructor Summary
DatabeanManagerFactoryConfig()
           
 
Method Summary
 DatabeanManagerFactory getDatabeanManagerFactory()
           
private  void initialise()
          Initialises the config details from the loaded config root
 void initialiseFromResourceStream(java.lang.String resourceLocation)
          Initialises the DatabeanManagerFactoryConfig parsing in the details from the specified config file
 void initialiseFromXML(java.lang.String xml)
          Initialises the DatabeanManagerFactoryConfig parsing in the details from the specified xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static java.util.logging.Logger logger
Stores a reference to the logger


configRoot

private org.w3c.dom.Node configRoot
Stores a reference to the config root


databeanManagerFactory

private DatabeanManagerFactory databeanManagerFactory
Stores a reference to the data bean manager factory to use

Constructor Detail

DatabeanManagerFactoryConfig

public DatabeanManagerFactoryConfig()
Method Detail

initialiseFromXML

public void initialiseFromXML(java.lang.String xml)
                       throws JaferException
Initialises the DatabeanManagerFactoryConfig parsing in the details from the specified xml

Parameters:
xml - The XML to process
Throws:
JaferException

initialiseFromResourceStream

public void initialiseFromResourceStream(java.lang.String resourceLocation)
                                  throws JaferException
Initialises the DatabeanManagerFactoryConfig parsing in the details from the specified config file

Parameters:
resourceLocation - The location of the resource in the distribution that will be retrieved as a stream using class.getResourceAsStream() to load the databeanmanager config details
Throws:
JaferException

initialise

private void initialise()
                 throws JaferException
Initialises the config details from the loaded config root

Throws:
JaferException

getDatabeanManagerFactory

public DatabeanManagerFactory getDatabeanManagerFactory()