Package org.glassfish.hk2.utilities
Class HK2LoaderImpl
- java.lang.Object
-
- org.glassfish.hk2.utilities.HK2LoaderImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ClassLoaderloader
-
Constructor Summary
Constructors Constructor Description HK2LoaderImpl()Initializes this HK2Loader with the system classloaderHK2LoaderImpl(java.lang.ClassLoader loader)Initializes this HK2Loader with the given ClassLoader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>loadClass(java.lang.String className)Loads a class given the class name to instantiatejava.lang.StringtoString()
-
-
-
Constructor Detail
-
HK2LoaderImpl
public HK2LoaderImpl()
Initializes this HK2Loader with the system classloader
-
HK2LoaderImpl
public HK2LoaderImpl(java.lang.ClassLoader loader)
Initializes this HK2Loader with the given ClassLoader- Parameters:
loader- The non-null classloader to use with this HK2Loader
-
-
Method Detail
-
loadClass
public java.lang.Class<?> loadClass(java.lang.String className) throws MultiExceptionDescription copied from interface:HK2LoaderLoads a class given the class name to instantiate- Specified by:
loadClassin interfaceHK2Loader- Parameters:
className- The descriptor to convert into an ActiveDescriptor- Returns:
- The class to be loaded. May not return null
- Throws:
MultiException- If this loader had some problem loading the class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-