Package org.apache.ofbiz.base.config
Class ResourceLoader
java.lang.Object
org.apache.ofbiz.base.config.ResourceLoader
- Direct Known Subclasses:
FileLoader
,UrlLoader
Loads resources using dynamically specified resource loader classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLoader
abstract URL
static URL
static Document
getXmlDocument
(String xmlFilename) Deprecated.static Element
getXmlRootElement
(String xmlFilename) Deprecated.static void
invalidateDocument
(String xmlFilename) abstract InputStream
loadResource
(String location) static Document
readXmlDocument
(String xmlFilename) static Element
readXmlRootElement
(String xmlFilename)
-
Constructor Details
-
ResourceLoader
protected ResourceLoader()
-
-
Method Details
-
getURL
public static URL getURL(String xmlFilename, String location, String loaderName) throws GenericConfigException - Throws:
GenericConfigException
-
getLoader
public static ResourceLoader getLoader(String xmlFilename, String loaderName) throws GenericConfigException - Throws:
GenericConfigException
-
getXmlRootElement
@Deprecated public static Element getXmlRootElement(String xmlFilename) throws GenericConfigException Deprecated.This method should be avoided. DOM object trees take a lot of memory and they are not thread-safe, so they should not be cached.- Throws:
GenericConfigException
-
readXmlRootElement
- Throws:
GenericConfigException
-
invalidateDocument
-
getXmlDocument
Deprecated.This method should be avoided. DOM object trees take a lot of memory and they are not thread-safe, so they should not be cached.- Throws:
GenericConfigException
-
readXmlDocument
- Throws:
GenericConfigException
-
loadResource
- Throws:
GenericConfigException
-
getURL
- Throws:
GenericConfigException
-
readXmlDocument(String)