Package org.ofbiz.core.config
Class ResourceLoader
java.lang.Object
org.ofbiz.core.config.ResourceLoader
- Direct Known Subclasses:
ClasspathLoader,FileLoader,UrlLoader
Loads resources using dynamically specified resource loader classes
Created March 1, 2002
- Version:
- 1.0
- Author:
- David E. Jones
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfullLocation(String location) Just a utility method to be used in loadResource by the implementing classstatic ResourceLoaderstatic DocumentgetXmlDocument(String xmlFilename) static ElementgetXmlRootElement(String xmlFilename) voidstatic voidinvalidateDocument(String xmlFilename) abstract InputStreamloadResource(String location) static InputStreamloadResource(String xmlFilename, String location, String loaderName) static ResourceLoadermakeLoader(Element loaderElement)
-
Field Details
-
loaderCache
-
docSaveMap
-
name
-
prefix
-
envName
-
-
Constructor Details
-
ResourceLoader
protected ResourceLoader()
-
-
Method Details
-
loadResource
public static InputStream loadResource(String xmlFilename, String location, String loaderName) throws GenericConfigException - Throws:
GenericConfigException
-
getLoader
public static ResourceLoader getLoader(String xmlFilename, String loaderName) throws GenericConfigException - Throws:
GenericConfigException
-
getXmlRootElement
- Throws:
GenericConfigException
-
invalidateDocument
- Throws:
GenericConfigException
-
getXmlDocument
- Throws:
GenericConfigException
-
makeLoader
- Throws:
GenericConfigException
-
init
-
fullLocation
Just a utility method to be used in loadResource by the implementing class -
loadResource
- Throws:
GenericConfigException
-