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
ResourceLocator
openResourceStream
in interface ResourceLocator
className
- the resource identificationIOException
- on i/o errorpublic URL getResource(String className)
ResourceLocator
getResource
in interface ResourceLocator
Copyright © 2009–2023 Oracle Corporation. All rights reserved.