|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.componio.jlicensure.shared.ObjectFactory
public class ObjectFactory
Creates generic PropertiesSettable objects by class name. This class uses an SjarClassLoader if it is available, otherwise the default class loader is used.
Constructor Summary | |
---|---|
ObjectFactory()
|
Method Summary | |
---|---|
static java.lang.Object |
createObject(java.lang.String className)
Creates the object of the given name and returns the object. |
static PropertiesSettable |
createObject(java.lang.String className,
java.util.Properties props)
Creates the object of the given name, sets the given properties object and returns the object. |
static java.lang.ClassLoader |
getObjectClassLoader()
Get the class loader used for loading objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectFactory()
Method Detail |
---|
public static java.lang.ClassLoader getObjectClassLoader()
public static java.lang.Object createObject(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
className
- the class name of a class implementing the PropertiesSettable interface
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static PropertiesSettable createObject(java.lang.String className, java.util.Properties props) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
className
- the class name of a class implementing the PropertiesSettable interfaceprops
- the properties to set
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |