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 TypeMethodDescriptionboolean
static CommonModelRegistry
getResource
(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, 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:ResourceLocator
Opens and input stream for the resources identified by the parameter name.- Specified by:
openResourceStream
in 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:ResourceLocator
Retrieves the URL given a resource name- Specified by:
getResource
in interfaceResourceLocator
- Parameters:
className
-- Returns:
- the resource URL, or null if not found
-