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)

Field Summary
private static org.apache.log4j.Logger LOG
           
 
Constructor Summary
private ResourceLoaderUtil()
           
 
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
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Constructor Detail

ResourceLoaderUtil

private ResourceLoaderUtil()
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 © 2004-2011 The Kuali Foundation. All Rights Reserved.