com.googlecode.xremoting.core.utils
Class ClassLoaderUtils

java.lang.Object
  extended by com.googlecode.xremoting.core.utils.ClassLoaderUtils

public class ClassLoaderUtils
extends Object

Utilities which help working with classloaders.

Author:
Roman Puchkovskiy

Constructor Summary
ClassLoaderUtils()
           
 
Method Summary
static ClassLoader getDefaultClassLoader(Class<?> clazz)
          Determines the 'default' classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderUtils

public ClassLoaderUtils()
Method Detail

getDefaultClassLoader

public static ClassLoader getDefaultClassLoader(Class<?> clazz)
Determines the 'default' classloader. That is context class loader, if defined, or else classloader which loaded the given class.

Parameters:
clazz - to which classloader to fall back
Returns:
classloader


Copyright © 2011. All Rights Reserved.