Module org.glassfish.hk2.classmodel
Class CommonModelRegistry
java.lang.Object
org.glassfish.hk2.classmodel.reflect.util.CommonModelRegistry
- All Implemented Interfaces:
ResourceLocator
- Author:
- Mahesh Kannan
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommonModelRegistrygetResource(String className) Retrieves the URL given a resource namevoidloadModel(ParsingContext ctx, String className) openResourceStream(String className) Opens and input stream for the resources identified by the parameter name.
-
Method Details
-
getInstance
-
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- Returns:
- the resource URL, or null if not found
-