|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(Class<T> clazz)
Construct. |
|
| Method Summary | ||
|---|---|---|
Class<T> |
get()
Provides an instance of type T |
|
static
|
of(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(Class<T> clazz)
clazz - | Method Detail |
|---|
public Class<T> get()
T
get in interface IProvider<Class<T>>Tpublic static <T> ClassProvider<T> of(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 | |||||||||