Class CommonModelRegistry
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.util.CommonModelRegistry
-
- All Implemented Interfaces:
ResourceLocator
public class CommonModelRegistry extends Object implements ResourceLocator
- Author:
- Mahesh Kannan
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canLoadResources()
static CommonModelRegistry
getInstance()
URL
getResource(String className)
Retrieves the URL given a resource namevoid
loadModel(ParsingContext ctx, String className)
InputStream
openResourceStream(String className)
Opens and input stream for the resources identified by the parameter name.
-
-
-
Method Detail
-
getInstance
public static CommonModelRegistry getInstance()
-
canLoadResources
public boolean canLoadResources()
-
loadModel
public void loadModel(ParsingContext ctx, String className)
-
openResourceStream
public InputStream openResourceStream(String className) throws IOException
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
public URL getResource(String className)
Description copied from interface:ResourceLocator
Retrieves the URL given a resource name- Specified by:
getResource
in interfaceResourceLocator
- Returns:
- the resource URL, or null if not found
-
-