org.kuali.rice.core.impl.resourceloader
Class ResourceLoaderUtil

java.lang.Object
  extended by org.kuali.rice.core.impl.resourceloader.ResourceLoaderUtil

public final class ResourceLoaderUtil
extends Object

A class for ResourceLoader related utilities.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
static Object createObject(String className, ClassLoader classLoader)
          Instantiates className class via no-arg constructor, and returns a proxy that wraps invocations with the specified classLoader as the context classloader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createObject

public static Object createObject(String className,
                                  ClassLoader classLoader)
Instantiates className class via no-arg constructor, and returns a proxy that wraps invocations with the specified classLoader as the context classloader

Parameters:
className - the class to instantiate
classLoader - the classLoader to set as the context classloader
Returns:
a proxy that wraps an instance with code that sets and unsets the appropriate context classloader


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.