org.primefaces.extensions.util
Class ClassUtils

java.lang.Object
  extended by org.primefaces.extensions.util.ClassUtils

public class ClassUtils
extends java.lang.Object

Component utils for this project.

Since:
0.6
Version:
$Revision: $
Author:
Thomas Andraschko / last modified by $Author: $

Method Summary
static java.lang.ClassLoader getClassLoader(java.lang.Class<?> clazz)
          Detect the right ClassLoader.
static java.lang.ClassLoader getClassLoader(java.lang.Object obj)
          Detect the right ClassLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClassLoader

public static java.lang.ClassLoader getClassLoader(java.lang.Object obj)
Detect the right ClassLoader. The lookup order is determined by:
  1. ClassLoader of the current Thread
  2. ClassLoader of the given Object 'obj'
  3. ClassLoader of this very ClassUtils class

Parameters:
obj - If not null it may get used to detect the ClassLoader.
Returns:
The ClassLoader which should get used to create new instances

getClassLoader

public static java.lang.ClassLoader getClassLoader(java.lang.Class<?> clazz)
Detect the right ClassLoader. The lookup order is determined by:
  1. ClassLoader of the current Thread
  2. ClassLoader of the given Object 'obj'
  3. ClassLoader of this very ClassUtils class

Parameters:
clazz - If not null it may get used to detect the ClassLoader.
Returns:
The ClassLoader which should get used to create new instances


Copyright © 2011-2013. All Rights Reserved.