public final class ClassUtil extends Object
This class is called by the Manager factories:
Modifier and Type | Method and Description |
---|---|
static Object |
createInstance(String className)
Given a valid class name call the default constructor through reflexion and return the reference to the caller.
|
static InputStream |
resourceAsStream(String name)
Find a file on the classloader and return as InputStream.
|
public static Object createInstance(String className) throws CfgException
className
- contains fully qualified java class name to be instantiated. Must have a public default constructor to be successful.CfgException
- in the event of failure to instantiate.public static InputStream resourceAsStream(String name) throws CfgException
name
- contains the name of the file resource.CfgException
- in the event resource is not found on classloader.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621