|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.persist.DeferredProperty
Defers the loading of a property until it's requested. This avoids ClassCastExceptions and ClassNotFoundErrors when loading PV, since the plugins that set "object" properties might not be available.
Since in a perfect world only the plugin that set the property will try to load it, the implementing class of the serialized object will most probably be available when the property is requested from the project.
This requires special treatment in VPTProject.
Constructor Summary | |
DeferredProperty(java.lang.String data,
java.lang.String name)
|
Method Summary | |
protected java.lang.String |
getData()
Returns the original string with the serialized object. |
java.lang.Object |
getValue()
Tries to load the object represented by the serialized data; returns the object, or "this" if loading failed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeferredProperty(java.lang.String data, java.lang.String name)
Method Detail |
protected java.lang.String getData()
public java.lang.Object getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |