org.glassfish.hk2.utilities
Class HK2LoaderImpl

java.lang.Object
  extended by org.glassfish.hk2.utilities.HK2LoaderImpl
All Implemented Interfaces:
HK2Loader

public class HK2LoaderImpl
extends Object
implements HK2Loader

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

Author:
jwells

Constructor Summary
HK2LoaderImpl()
          Initializes this HK2Loader with the system classloader
HK2LoaderImpl(ClassLoader loader)
          Initializes this HK2Loader with the given ClassLoader
 
Method Summary
 Class<?> loadClass(String className)
          Loads a class given the class name to instantiate
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HK2LoaderImpl

public HK2LoaderImpl()
Initializes this HK2Loader with the system classloader


HK2LoaderImpl

public HK2LoaderImpl(ClassLoader loader)
Initializes this HK2Loader with the given ClassLoader

Parameters:
loader - The non-null classloader to use with this HK2Loader
Method Detail

loadClass

public Class<?> loadClass(String className)
                   throws MultiException
Description copied from interface: HK2Loader
Loads a class given the class name to instantiate

Specified by:
loadClass in interface HK2Loader
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 String toString()
Overrides:
toString in class Object


Copyright © 2012 Oracle Corporation. All Rights Reserved.