Top Fields Constructors Methods
org.glassfish.hk2.classmodel.reflect.util

public Class CommonModelRegistry

extends Object
implements ResourceLocator
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.classmodel.reflect.util.ResourceLocator
Imports
org.glassfish.hk2.classmodel.reflect.ParsingContext, org.objectweb.asm.ClassReader, org.osgi.framework.Bundle, .BundleContext, org.osgi.service.packageadmin.ExportedPackage, .PackageAdmin, java.io.ByteArrayInputStream, .IOException, .InputStream, java.net.URL

Author
Mahesh Kannan

Field Summary

Modifier and TypeField and Description
private static CommonModelRegistry
pack-priv BundleContext
pack-priv PackageAdmin
pkgAdmin

References Deprecated PackageAdmin is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public static CommonModelRegistry
public URL
getResource(String className)

Implements org.glassfish.hk2.classmodel.reflect.util.ResourceLocator.getResource.

Retrieves the URL given a resource name

pack-priv void
initialize(BundleContext ctx, PackageAdmin pkgAdmin)
References Deprecated PackageAdmin is deprecated or references (maybe indirectly) at least one deprecated element.

public void
public InputStream
openResourceStream(String className)

Implements org.glassfish.hk2.classmodel.reflect.util.ResourceLocator.openResourceStream.

Opens and input stream for the resources identified by the parameter name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_instanceback to summary
private static CommonModelRegistry _instance
ctxback to summary
pack-priv BundleContext ctx
pkgAdminback to summary
pack-priv PackageAdmin pkgAdmin

References Deprecated

PackageAdmin is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

CommonModelRegistryback to summary
private CommonModelRegistry()

Method Detail

canLoadResourcesback to summary
public boolean canLoadResources()
getInstanceback to summary
public static CommonModelRegistry getInstance()
getResourceback to summary
public URL getResource(String className)

Implements org.glassfish.hk2.classmodel.reflect.util.ResourceLocator.getResource.

Doc from org.glassfish.hk2.classmodel.reflect.util.ResourceLocator.getResource.

Retrieves the URL given a resource name

Annotations
@Override
initializeback to summary
pack-priv void initialize(BundleContext ctx, PackageAdmin pkgAdmin)

References Deprecated

PackageAdmin is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

loadModelback to summary
public void loadModel(ParsingContext ctx, String className)
openResourceStreamback to summary
public InputStream openResourceStream(String className) throws IOException

Implements org.glassfish.hk2.classmodel.reflect.util.ResourceLocator.openResourceStream.

Doc from org.glassfish.hk2.classmodel.reflect.util.ResourceLocator.openResourceStream.

Opens and input stream for the resources identified by the parameter name.

Annotations
@Override
Exceptions
IOException:
on i/o error