|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.MetaDataKey
public abstract class MetaDataKey
A key to a piece of metadata associated with a Component at runtime. The key contains type information that can be used to check the type of any metadata value for the key when the value is set on the given Component. MetaDataKey is abstract in order to force the creation of a subtype. That subtype is used to test for identity when looking for the metadata because actual object identity would suffer from problems under serialization. So, the correct way to declare a MetaDataKey is like this: public static MetaDataKey ROLE = new MetaDataKey(Role.class) { }
| Constructor Summary | |
|---|---|
MetaDataKey(java.lang.Class type)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaDataKey(java.lang.Class type)
type - The type of value stored under this key| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||