Clarification of Job#setProperty please [message #646910] |
Mon, 03 January 2011 04:00 |
|
The Javadoc comment for org.eclipse.core.runtime.jobs.Job#setProperty(QualifiedName key, Object value) intrigues me and I wonder if someone here can provide clarification please.
Quote: | ...
* Properties are intended to be used as a caching mechanism
* by ISV plug-ins. They allow key-object associations to be stored with
* a job instance. These key-value associations are maintained in
* memory (at all times), and the information is never discarded automatically.
...
|
1. What are "ISV plug-ins"?
2. What exactly does "... never discarded automatically." mean? What are the consequences of setting a Job property?
3. Can properties be used to store some value for later retrieval in a JobChangeListener? For instance, if the job is scheduled to make a network call to get data, can it store that data as a property, return Status.OK_STATUS then have an attached JobChangeAdapter retrieve that data for further handling? Or is this not what the method was intended for?
Thanks,
Craig
[Updated on: Mon, 03 January 2011 04:02] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02910 seconds