org.apache.beehive.netui.databinding.datagrid.runtime.util
Class ExtensionUtil

Object
  extended by ExtensionUtil

public final class ExtensionUtil
extends Object

Internal method used by the data grid to instantiate classes. This class should not be used elsewhere.


Method Summary
static Object instantiateClass(Class clazz, Class assignableFrom)
          Utility method that helps instantiate a class used to extend the data grid.
static Object instantiateClass(String className, Class assignableFrom)
          Utility method that helps instantiate a class used to extend the data grid.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instantiateClass

public static Object instantiateClass(String className,
                                      Class assignableFrom)
Utility method that helps instantiate a class used to extend the data grid.

Parameters:
className - the name of a class to instantiate
assignableFrom - the type that should be assignable from an instance of type className
Returns:
an instance of the given class
Throws:
DataGridExtensionException - when an error occurs creating an instance of the class

instantiateClass

public static Object instantiateClass(Class clazz,
                                      Class assignableFrom)
Utility method that helps instantiate a class used to extend the data grid.

Parameters:
clazz - the name of a class to instantiate
assignableFrom - the type that should be assignable from an instance of type className
Returns:
an instance of the given class
Throws:
DataGridExtensionException - when an error occurs creating an instance of the class