public class CommonModelRegistry extends java.lang.Object implements ResourceLocator
Modifier and Type | Field and Description |
---|---|
private static CommonModelRegistry |
_instance |
(package private) org.osgi.framework.BundleContext |
ctx |
(package private) org.osgi.service.packageadmin.PackageAdmin |
pkgAdmin |
Modifier | Constructor and Description |
---|---|
private |
CommonModelRegistry() |
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
|
(package private) void |
initialize(org.osgi.framework.BundleContext ctx,
org.osgi.service.packageadmin.PackageAdmin pkgAdmin) |
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.
|
org.osgi.framework.BundleContext ctx
org.osgi.service.packageadmin.PackageAdmin pkgAdmin
private static CommonModelRegistry _instance
public static CommonModelRegistry getInstance()
void initialize(org.osgi.framework.BundleContext ctx, org.osgi.service.packageadmin.PackageAdmin pkgAdmin)
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
ResourceLocator
openResourceStream
in interface ResourceLocator
className
- the resource identificationjava.io.IOException
- on i/o errorpublic java.net.URL getResource(java.lang.String className)
ResourceLocator
getResource
in interface ResourceLocator