public class FactoryFinder
extends java.lang.Object
| Constructor and Description |
|---|
FactoryFinder(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
newInstance(java.lang.String key)
Creates a new instance of the given key
|
java.lang.Object |
newInstance(java.lang.String key,
java.lang.String propertyPrefix) |
public java.lang.Object newInstance(java.lang.String key)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.io.IOException,
java.lang.ClassNotFoundException
key - is the key to add to the path to find a text file
containing the factory namejava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.lang.Object newInstance(java.lang.String key,
java.lang.String propertyPrefix)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.io.IOException,
java.lang.ClassNotFoundException
java.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.