|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.dynamic.codegen.spi.GenericClass<T>
public class GenericClass<T>
Class that allows any class to be instantiated via any accessible constructor. Really a short hand to avoid writing a bunch of reflective code.
| Constructor Summary | |
|---|---|
GenericClass(Class<T> type,
Class<?> cls)
Create a generic of type T for the untyped class cls. |
|
GenericClass(Class<T> type,
InterceptorContext ic,
byte[] classData)
Create a GenericClass of the given type by modifying classData with the given interceptors. |
|
| Method Summary | |
|---|---|
T |
create(Object... args)
Create an instance of type T using the constructor that matches the given arguments if possible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericClass(Class<T> type,
InterceptorContext ic,
byte[] classData)
public GenericClass(Class<T> type,
Class<?> cls)
IllegalArgumentException - if cls is not a subclass of type.| Method Detail |
|---|
public T create(Object... args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||