Top Description Fields Constructors Methods
org.glassfish.hk2.utilities

public Class HK2LoaderImpl

extends Object
implements HK2Loader
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.HK2Loader
Imports
org.glassfish.hk2.api.HK2Loader, .MultiException

This is an implementation of an HK2Loader that uses a given classloader
Author
jwells

Field Summary

Modifier and TypeField and Description
private final ClassLoader

Constructor Summary

AccessConstructor and Description
public
HK2LoaderImpl()

Initializes this HK2Loader with the system classloader

public
HK2LoaderImpl(ClassLoader
The non-null classloader to use with this HK2Loader
loader
)

Initializes this HK2Loader with the given ClassLoader

Method Summary

Modifier and TypeMethod and Description
public Class<?>
loadClass(String className)

Implements org.glassfish.hk2.api.HK2Loader.loadClass.

Loads a class given the class name to instantiate

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

loaderback to summary
private final ClassLoader loader

Constructor Detail

HK2LoaderImplback to summary
public HK2LoaderImpl()

Initializes this HK2Loader with the system classloader

HK2LoaderImplback to summary
public HK2LoaderImpl(ClassLoader loader)

Initializes this HK2Loader with the given ClassLoader

Parameters
loader:ClassLoader

The non-null classloader to use with this HK2Loader

Method Detail

loadClassback to summary
public Class<?> loadClass(String className) throws MultiException

Implements org.glassfish.hk2.api.HK2Loader.loadClass.

Doc from org.glassfish.hk2.api.HK2Loader.loadClass.

Loads a class given the class name to instantiate

Annotations
@Override
Exceptions
MultiException:
If this loader had some problem loading the class
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.