public abstract class ResourceLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Document> |
docSaveMap |
protected String |
envName |
protected static UtilCache<String,ResourceLoader> |
loaderCache |
protected String |
name |
protected String |
prefix |
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
fullLocation(String location)
Just a utility method to be used in loadResource by the implementing class
|
static ResourceLoader |
getLoader(String xmlFilename,
String loaderName) |
static Document |
getXmlDocument(String xmlFilename) |
static Element |
getXmlRootElement(String xmlFilename) |
void |
init(String name,
String prefix,
String envName) |
static void |
invalidateDocument(String xmlFilename) |
abstract InputStream |
loadResource(String location) |
static InputStream |
loadResource(String xmlFilename,
String location,
String loaderName) |
static ResourceLoader |
makeLoader(Element loaderElement) |
protected static UtilCache<String,ResourceLoader> loaderCache
protected String name
protected String prefix
protected String envName
public static InputStream loadResource(String xmlFilename, String location, String loaderName) throws GenericConfigException
GenericConfigExceptionpublic static ResourceLoader getLoader(String xmlFilename, String loaderName) throws GenericConfigException
GenericConfigExceptionpublic static Element getXmlRootElement(String xmlFilename) throws GenericConfigException
GenericConfigExceptionpublic static void invalidateDocument(String xmlFilename) throws GenericConfigException
GenericConfigExceptionpublic static Document getXmlDocument(String xmlFilename) throws GenericConfigException
GenericConfigExceptionpublic static ResourceLoader makeLoader(Element loaderElement) throws GenericConfigException
GenericConfigExceptionpublic String fullLocation(String location)
public abstract InputStream loadResource(String location) throws GenericConfigException
GenericConfigExceptionCopyright © 2018 Atlassian. All rights reserved.