Package org.apache.wicket.util.reference
Class ClassReference<T>
- java.lang.Object
-
- org.apache.wicket.util.reference.ClassReference<T>
-
- Type Parameters:
T
- type of class
- All Implemented Interfaces:
Serializable
,Supplier<Class<T>>
public class ClassReference<T> extends Object implements Serializable, Supplier<Class<T>>
A serialization-safe reference to aClass
- Author:
- igor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassReference(Class<T> clazz)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>
get()
static <T> ClassReference<T>
of(Class<T> clazz)
Diamond operator factory
-
-
-
Constructor Detail
-
ClassReference
public ClassReference(Class<T> clazz)
Constructor- Parameters:
clazz
- The referenced class
-
-