|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.GenericFactory<T>
public class GenericFactory<T>
Factory for an instance of any type. Employs Class.newInstance to instantiate.
Constructor Summary | |
---|---|
GenericFactory(Class<T> clazz)
Ctor. |
Method Summary | |
---|---|
T |
create()
Create instance of class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericFactory(Class<T> clazz)
clazz
- Class of which instace must be createdMethod Detail |
---|
public T create() throws IllegalAccessException, InstantiationException
IllegalAccessException
- is thrown by Class.newInstance
InstantiationException
- is thrown by Class.newInstance
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |