org.ow2.util.ee.metadata.ws.impl.xml.parsing
Class WebservicesDeploymentDescLoader

java.lang.Object
  extended by org.ow2.util.ee.metadata.common.impl.xml.parsing.AbsDeploymentDescLoader
      extended by org.ow2.util.ee.metadata.common.impl.xml.parsing.CommonDeploymentDescLoader
          extended by org.ow2.util.ee.metadata.ws.impl.xml.parsing.WebservicesDeploymentDescLoader

public class WebservicesDeploymentDescLoader
extends org.ow2.util.ee.metadata.common.impl.xml.parsing.CommonDeploymentDescLoader

The WebservicesDeploymentDescLoader loads the webservices.xml file.

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.ow2.util.ee.metadata.common.impl.xml.parsing.AbsDeploymentDescLoader
J2EE_NS, JAVAEE_NS
 
Method Summary
 Webservices getWebservices()
           
static Webservices loadDeploymentDescriptor(java.net.URL url)
          Load the ejb-jar.xml file.
 void parse()
          Analyze the URL and build an EJB3 object which contains data of the XML.
 
Methods inherited from class org.ow2.util.ee.metadata.common.impl.xml.parsing.CommonDeploymentDescLoader
analyzeEnvironment, analyzeHandlerChain, analyzeLifeCycle
 
Methods inherited from class org.ow2.util.ee.metadata.common.impl.xml.parsing.AbsDeploymentDescLoader
defineXMLNS, getURL, getXMLNS, isValidating, setValidating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadDeploymentDescriptor

public static Webservices loadDeploymentDescriptor(java.net.URL url)
                                            throws org.ow2.util.ee.metadata.common.impl.xml.parsing.ParsingException
Load the ejb-jar.xml file.

Parameters:
url - the URL of the XML file.
Returns:
an application object.
Throws:
org.ow2.util.ee.metadata.common.impl.xml.parsing.ParsingException - if parsing of XML file fails.

parse

public void parse()
           throws org.ow2.util.ee.metadata.common.impl.xml.parsing.ParsingException
Analyze the URL and build an EJB3 object which contains data of the XML.

Throws:
org.ow2.util.ee.metadata.common.impl.xml.parsing.ParsingException - if the analyze of the file fails.

getWebservices

public Webservices getWebservices()
Returns:
the loaded instance


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.