|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.ClassProvider<T>
T
- the type of the classpublic class ClassProvider<T>
A provider
which holds a reference to a class
in a
WeakReference
so that it can be collected by the GC when needed
Constructor Summary | |
---|---|
ClassProvider(java.lang.Class<T> clazz)
Construct. |
Method Summary | ||
---|---|---|
java.lang.Class<T> |
get()
Provides an instance of type T |
|
static
|
of(java.lang.Class<T> clazz)
Creates a provider for the specified class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassProvider(java.lang.Class<T> clazz)
clazz
- Method Detail |
---|
public java.lang.Class<T> get()
T
get
in interface IProvider<java.lang.Class<T>>
T
public static <T> ClassProvider<T> of(java.lang.Class<T> clazz)
T
- type of valueclazz
- the class to provide
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |