|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.nextgrid.api.pom.ref.ReferenceSupport<E> com.gridsystems.nextgrid.api.pom.ref.ObjectReference<E>
E
- Class typepublic class ObjectReference<E>
Reference to an arbitrary object. For being used only in specialised cases.
Field Summary |
---|
Fields inherited from class com.gridsystems.nextgrid.api.pom.ref.ReferenceSupport |
---|
LOG |
Constructor Summary | |
---|---|
ObjectReference(java.lang.Class<E> type)
Creates a new instance. |
|
ObjectReference(java.lang.Class<E> type,
E value)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
canCastFrom(java.lang.Class<?> type)
|
boolean |
canCastTo(java.lang.Class<?> type)
|
java.lang.Object |
castTo(java.lang.Class<?> type)
|
E |
getValue()
|
java.lang.Class<E> |
getValueType()
|
void |
setValue(java.lang.Object value)
|
Methods inherited from class com.gridsystems.nextgrid.api.pom.ref.ReferenceSupport |
---|
addReader, addWriter, clearLinks, copy, dispose, getReaders, getWriters, isAvailable, readLock, removeReader, removeWriter, reset, setAvailable, waitAvailable, writeLock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectReference(java.lang.Class<E> type)
type
- Value typepublic ObjectReference(java.lang.Class<E> type, E value)
type
- Value typevalue
- ValueMethod Detail |
---|
public boolean canCastFrom(java.lang.Class<?> type)
public boolean canCastTo(java.lang.Class<?> type)
public java.lang.Object castTo(java.lang.Class<?> type)
public E getValue()
public java.lang.Class<E> getValueType()
public void setValue(java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |