public class CommonModelRegistry extends Object implements ResourceLocator
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoadResources() |
static CommonModelRegistry |
getInstance() |
URL |
getResource(String className)
Retrieves the URL given a resource name
|
void |
loadModel(ParsingContext ctx,
String className) |
InputStream |
openResourceStream(String className)
Opens and input stream for the resources identified by the parameter name.
|
public static CommonModelRegistry getInstance()
public boolean canLoadResources()
public void loadModel(ParsingContext ctx, String className)
public InputStream openResourceStream(String className) throws IOException
ResourceLocatoropenResourceStream in interface ResourceLocatorclassName - the resource identificationIOException - on i/o errorpublic URL getResource(String className)
ResourceLocatorgetResource in interface ResourceLocatorCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.