com.acsinet_solutions.util.build
Class BuildingTools

java.lang.Object
  extended by com.acsinet_solutions.util.build.BuildingTools

public final class BuildingTools
extends java.lang.Object

Convenience utility methods

Author:
Santiago Arriaga

Constructor Summary
BuildingTools()
           
 
Method Summary
static java.lang.Class getClassFor(java.lang.String className)
           
static java.lang.Object getInstanceFor(java.lang.Class c)
           
static java.lang.Object getInstanceFor(java.lang.String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildingTools

public BuildingTools()
Method Detail

getClassFor

public static final java.lang.Class getClassFor(java.lang.String className)
                                         throws BuildException
Parameters:
className - A not-null valid Class FQN avalable to the class loader
Returns:
A not-null Class instance
Throws:
BuildException - Thrown if the class instance could not be obtained

getInstanceFor

public static final java.lang.Object getInstanceFor(java.lang.Class c)
                                             throws BuildException
Parameters:
c - A not-null Class instance with a public default constructor
Returns:
A not-null Object instance of the given input class
Throws:
BuildException - Thrown if the instance could not be obtained

getInstanceFor

public static final java.lang.Object getInstanceFor(java.lang.String className)
                                             throws BuildException
Parameters:
className - A not-null valid Class FQN avalable to the class loader
Returns:
A not-null Object instance of the given input class
Throws:
BuildException - Thrown if the instance could not be obtained