Class CommonModelRegistry
java.lang.Object
org.glassfish.hk2.classmodel.reflect.util.CommonModelRegistry
- All Implemented Interfaces:
ResourceLocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CommonModelRegistry(package private) org.osgi.framework.BundleContext(package private) org.osgi.service.packageadmin.PackageAdmin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommonModelRegistrygetResource(String className) Retrieves the URL given a resource name(package private) voidinitialize(org.osgi.framework.BundleContext ctx, org.osgi.service.packageadmin.PackageAdmin pkgAdmin) voidloadModel(ParsingContext ctx, String className) openResourceStream(String className) Opens and input stream for the resources identified by the parameter name.
-
Field Details
-
ctx
org.osgi.framework.BundleContext ctx -
pkgAdmin
org.osgi.service.packageadmin.PackageAdmin pkgAdmin -
_instance
-
-
Constructor Details
-
CommonModelRegistry
private CommonModelRegistry()
-
-
Method Details
-
getInstance
-
initialize
void initialize(org.osgi.framework.BundleContext ctx, org.osgi.service.packageadmin.PackageAdmin pkgAdmin) -
canLoadResources
public boolean canLoadResources() -
loadModel
-
openResourceStream
Description copied from interface:ResourceLocatorOpens and input stream for the resources identified by the parameter name.- Specified by:
openResourceStreamin interfaceResourceLocator- Parameters:
className- the resource identification- Returns:
- an input stream, or null if the name does not exist
- Throws:
IOException- on i/o error
-
getResource
Description copied from interface:ResourceLocatorRetrieves the URL given a resource name- Specified by:
getResourcein interfaceResourceLocator- Parameters:
className-- Returns:
- the resource URL, or null if not found
-