public abstract class PrimaryObjectSupplier extends Object
If supplier is asked to track changes, it should notify requestor whenever any of the objects
produced by the get(IObjectDescriptor[], Object[], IRequestor, boolean, boolean, boolean)
method change.
The supplier can do this by performing calls to the IRequestor.resolveArguments(boolean)
and
IRequestor.execute()
.
Constructor and Description |
---|
PrimaryObjectSupplier()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
abstract void |
get(IObjectDescriptor[] descriptors,
Object[] actualValues,
IRequestor requestor,
boolean initial,
boolean track,
boolean group)
This method is called by the dependency injection mechanism to obtain objects corresponding
to the object descriptors.
|
WeakReference<Object> |
makeReference(Object object)
Creates a new reference to the object.
|
abstract void |
pauseRecording()
Pause tracking access to the supplier's objects.
|
abstract void |
resumeRecording()
Resume tracking access to the supplier's objects.
|
public abstract void get(IObjectDescriptor[] descriptors, Object[] actualValues, IRequestor requestor, boolean initial, boolean track, boolean group)
descriptors
- descriptors to the objects requested by the requestoractualValues
- the values of actual arguments computed so far for the descriptors (in/out)requestor
- the requestor originating this requestinitial
- true
true if this is the initial request from the requestortrack
- true
if the object suppliers should notify requestor of
changes to the returned objects; false
otherwisegroup
- true
if the change notifications can be grouped;
false
otherwisepublic abstract void pauseRecording()
public abstract void resumeRecording()
public WeakReference<Object> makeReference(Object object)
Suppliers may override to provide improved memory management, for instance, by to tracking references with reference queues.
object
- the referred object
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.