de.lessvoid.xml.tools
Class ClassHelper

java.lang.Object
  extended by de.lessvoid.xml.tools.ClassHelper

public final class ClassHelper
extends Object

Helper to get Class from class name.

Author:
void

Method Summary
static
<T> T
getInstance(Class<T> clazz)
           
static
<T> T
getInstance(String className, Class<T> type)
          dynamically load the given class, create and return a new instance.
static Class<?> loadClass(String className)
          Load Class with the given full qualified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadClass

public static Class<?> loadClass(String className)
Load Class with the given full qualified name.

Parameters:
className - name of class to load
Returns:
Class object or null

getInstance

public static <T> T getInstance(String className,
                                Class<T> type)
dynamically load the given class, create and return a new instance.

Type Parameters:
T - class
Parameters:
className - className
type - type
Returns:
new ScreenController instance or null

getInstance

public static <T> T getInstance(Class<T> clazz)


Copyright © 2012. All Rights Reserved.