public class CommonModelRegistry extends java.lang.Object implements ResourceLocator
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoadResources() |
static CommonModelRegistry |
getInstance() |
java.net.URL |
getResource(java.lang.String className)
Retrieves the URL given a resource name
|
void |
loadModel(ParsingContext ctx,
java.lang.String className) |
java.io.InputStream |
openResourceStream(java.lang.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, java.lang.String className)
public java.io.InputStream openResourceStream(java.lang.String className)
throws java.io.IOException
ResourceLocatoropenResourceStream in interface ResourceLocatorclassName - the resource identificationjava.io.IOException - on i/o errorpublic java.net.URL getResource(java.lang.String className)
ResourceLocatorgetResource in interface ResourceLocatorCopyright © 2013 Oracle Corporation. All Rights Reserved.