|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.XmlFileLoader
XmlFileLoader class is used to read ejb-jar.xml, standardjboss.xml, jboss.xml files, process them using DTDs and create ApplicationMetaData object for future use. It also provides the local entity resolver for the JBoss specific DTDs.
Constructor Summary | |
XmlFileLoader()
|
|
XmlFileLoader(boolean validateDTDs)
|
Method Summary | |
ClassLoader |
getClassLoader()
Gets the class loader |
static boolean |
getDefaultValidateDTDs()
|
Document |
getDocument(InputSource is,
String inPath)
Parses the xml document in is to create a DOM Document. |
Document |
getDocument(InputStream is,
String inPath)
Parses the xml document in is to create a DOM Document. |
static Document |
getDocument(URL url)
Invokes getDocument(url, defaultValidateDTDs) |
static Document |
getDocument(URL url,
boolean validateDTDs)
Get the xml file from the URL and parse it into a Document object. |
Document |
getDocumentFromURL(URL url)
Get the xml file from the URL and parse it into a Document object. |
ApplicationMetaData |
getMetaData()
|
boolean |
getValidateDTDs()
Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
ApplicationMetaData |
load(URL alternativeDD)
Creates the ApplicationMetaData. |
void |
setClassLoader(URLClassLoader cl)
Set the class loader |
static void |
setDefaultValidateDTDs(boolean validate)
|
void |
setValidateDTDs(boolean validate)
Set the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlFileLoader()
public XmlFileLoader(boolean validateDTDs)
Method Detail |
public static boolean getDefaultValidateDTDs()
public static void setDefaultValidateDTDs(boolean validate)
public ApplicationMetaData getMetaData()
public void setClassLoader(URLClassLoader cl)
public ClassLoader getClassLoader()
public boolean getValidateDTDs()
public void setValidateDTDs(boolean validate)
public ApplicationMetaData load(URL alternativeDD) throws Exception
alternativeDD
- a URL to the alternative DD given in application.xml
Exception
public static Document getDocument(URL url) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public static Document getDocument(URL url, boolean validateDTDs) throws org.jboss.deployment.DeploymentException
url
- the URL from which the xml doc is to be obtained.
org.jboss.deployment.DeploymentException
public Document getDocumentFromURL(URL url) throws org.jboss.deployment.DeploymentException
url
- the URL from which the xml doc is to be obtained.
org.jboss.deployment.DeploymentException
public Document getDocument(InputStream is, String inPath) throws org.jboss.deployment.DeploymentException
is
- the InputStream containing the xml descriptor to parseinPath
- the path information for the xml doc. This is used as the
InputSource SystemId URI for resolving relative entity references.
org.jboss.deployment.DeploymentException
public Document getDocument(InputSource is, String inPath) throws org.jboss.deployment.DeploymentException
is
- the InputSource containing the xml descriptor to parseinPath
- the path information for the xml doc. This is used for
only for error reporting.
org.jboss.deployment.DeploymentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |