|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InstanceFactory
An interface to easily instantiate objects from classes.
| Method Summary | ||
|---|---|---|
|
getInstance(Class<T> clazz)
Gets an instance of a class. |
|
Object |
getInstance(String className)
Get an instance of a class. |
|
Object |
getInstance(String className,
ClassLoader classLoader)
Get an instance of a class from a specific classloader. |
|
| Method Detail |
|---|
Object getInstance(String className)
throws ClassNotFoundException
className - name of class.
ClassNotFoundException - if the class does not exist.
Object getInstance(String className,
ClassLoader classLoader)
throws ClassNotFoundException
className - name of class.classLoader - class loader.
ClassNotFoundException - if the class does not exist.<T> T getInstance(Class<T> clazz)
T - type of class.clazz - class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||