org.objectweb.easybeans.deployment.xml.parsing
Class EJB3DeploymentDescLoader

java.lang.Object
  extended by org.objectweb.easybeans.deployment.xml.parsing.EJB3DeploymentDescLoader

public final class EJB3DeploymentDescLoader
extends java.lang.Object

This class analyzes the EJB3 deployment descriptor and fill a struct with getters.

Author:
Florent Benoit

Field Summary
private static java.lang.String JAVAEE_NS
          Persistence namespace.
private static JLog logger
          Logger.
private static boolean validating
          Validating with schema ?
 
Constructor Summary
private EJB3DeploymentDescLoader()
          Utility class, no constructor.
 
Method Summary
private static void analyzeBean(org.w3c.dom.Element beanElement, AbsBean bean)
          Analyze common stuff of a bean.
private static void analyzeBeans(org.w3c.dom.Element enterpriseBeansElement, EnterpriseBeans enterpriseBeans)
          Analyze common stuff of beans.
private static void analyzeEnvEnvtry(org.w3c.dom.Element envElement, AbsEnvironment env)
          Analyze the env-entry element.
private static void analyzeEnvironement(org.w3c.dom.Element envElement, AbsEnvironment env)
          Analyze the environment (could be a bean, servlet, etc).
static EJB3 loadDeploymentDescriptor(java.net.URL url)
          Load the ejb-jar.xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVAEE_NS

private static final java.lang.String JAVAEE_NS
Persistence namespace.

See Also:
Constant Field Values

logger

private static JLog logger
Logger.


validating

private static boolean validating
Validating with schema ?

Constructor Detail

EJB3DeploymentDescLoader

private EJB3DeploymentDescLoader()
Utility class, no constructor.

Method Detail

loadDeploymentDescriptor

public static EJB3 loadDeploymentDescriptor(java.net.URL url)
                                     throws ParsingException
Load the ejb-jar.xml file.

Parameters:
url - the URL of the XML file.
Returns:
an application object.
Throws:
ParsingException - if parsing of XML file fails.

analyzeBeans

private static void analyzeBeans(org.w3c.dom.Element enterpriseBeansElement,
                                 EnterpriseBeans enterpriseBeans)
Analyze common stuff of beans.

Parameters:
enterpriseBeansElement - the dom element.
enterpriseBeans - the structure representing object.

analyzeBean

private static void analyzeBean(org.w3c.dom.Element beanElement,
                                AbsBean bean)
Analyze common stuff of a bean.

Parameters:
beanElement - the dom element.
bean - the structure representing object.

analyzeEnvironement

private static void analyzeEnvironement(org.w3c.dom.Element envElement,
                                        AbsEnvironment env)
Analyze the environment (could be a bean, servlet, etc).

Parameters:
envElement - the dom element.
env - the structure representing object.

analyzeEnvEnvtry

private static void analyzeEnvEnvtry(org.w3c.dom.Element envElement,
                                     AbsEnvironment env)
Analyze the env-entry element.

Parameters:
envElement - the dom element.
env - the structure representing object.