public interface IExtensionTracker
This interface can be used without OSGi running.
This interface is not intended to be implemented by clients.
Modifier and Type | Field and Description |
---|---|
static int |
REF_SOFT
Constant for soft reference holding.
|
static int |
REF_STRONG
Constant for strong (normal) reference holding.
|
static int |
REF_WEAK
Constant for weak reference holding.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the tracker.
|
Object[] |
getObjects(IExtension extension)
Return all the objects that have been associated with the given extension.
|
void |
registerHandler(IExtensionChangeHandler handler,
IFilter filter)
Register an extension change handler with this tracker using the given filter.
|
void |
registerObject(IExtension extension,
Object object,
int referenceType)
Create an association between the given extension and the given object.
|
void |
unregisterHandler(IExtensionChangeHandler handler)
Unregister the given extension change handler previously registered with this tracker.
|
Object[] |
unregisterObject(IExtension extension)
Remove all the objects associated with the given extension.
|
void |
unregisterObject(IExtension extension,
Object object)
Remove an association between the given extension and the given object.
|
static final int REF_STRONG
1
.static final int REF_SOFT
2
.static final int REF_WEAK
3
.void registerHandler(IExtensionChangeHandler handler, IFilter filter)
handler
- the handler to be registeredfilter
- the filter to use to choose interesting changesvoid unregisterHandler(IExtensionChangeHandler handler)
handler
- the handler to be unregisteredvoid registerObject(IExtension extension, Object object, int referenceType)
REF_STRONG
, REF_SOFT
, REF_WEAK
.extension
- the extensionobject
- the object to associate with the extensionreferenceType
- one of REF_STRONG, REF_SOFT, REF_WEAKREF_STRONG
,
REF_SOFT
,
REF_WEAK
void unregisterObject(IExtension extension, Object object)
extension
- the extension under which the object has been registeredobject
- the object to unregisterObject[] unregisterObject(IExtension extension)
extension
- the extension for which the objects are removedObject[] getObjects(IExtension extension)
extension
- the extension for which the object must be returnedvoid close()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.