|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.SystemObjectContributorManager
This class is a default implementation of IObjectContributorManager
.
It provides fast merging of contributions with the following semantics:
class X extends Y implements A, B
Object
getInterfaces()
(in the example, A and
its superinterfaces then B and its superinterfaces)
IObjectContributor
,
IObjectContributorManager
Field Summary | |
---|---|
protected Map |
adapterLookup
Cache of resource adapter class contributor search paths; null if none. |
protected Map |
contributors
Table of contributors. |
protected Map |
objectLookup
Cache of object class contributor search paths; null if none. |
Constructor Summary | |
---|---|
SystemObjectContributorManager()
Constructs a new contributor manager. |
Method Summary | |
---|---|
protected List |
addContributorsFor(Class objectClass)
Return the list of contributors for the supplied class. |
protected List |
computeClassOrder(Class extensibleClass)
Returns the class search order starting with extensibleClass .
|
protected List |
computeInterfaceOrder(List classList)
Returns the interface search order for the class hierarchy described by classList .
|
void |
flushLookup()
Flushes the cache of contributor search paths. |
protected Object |
getAdaptedResource(Object object)
Get the adapted resource for the supplied object. |
Collection |
getContributors()
Get the contributions registered to this manager. |
protected List |
getContributors(Class objectClass)
Returns all the contributors registered against the given object class. |
protected List |
getContributors(Class objectClass,
Class resourceClass)
Returns all the contributors registered against the given object class and the resource class that it has an Adaptable for. |
protected List |
getContributors(Object object)
Get the contributors for object including those it adapts to. |
boolean |
hasContributorsFor(Object object)
Returns true if contributors exist in the manager for this object. |
boolean |
isApplicableTo(IStructuredSelection selection,
IObjectContributor contributor)
|
void |
registerContributor(IObjectContributor contributor,
String targetType)
|
void |
unregisterAllContributors()
|
void |
unregisterContributor(IObjectContributor contributor,
String targetType)
|
void |
unregisterContributors(String targetType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Map contributors
protected Map objectLookup
null
if none.
protected Map adapterLookup
null
if none.
Constructor Detail |
public SystemObjectContributorManager()
Method Detail |
protected final List computeClassOrder(Class extensibleClass)
extensibleClass
.
The search order is defined in this class' comment.
protected final List computeInterfaceOrder(List classList)
classList
.
The search order is defined in this class' comment.
public void flushLookup()
It is likely easier to just toss the whole cache rather than trying to be smart and remove only those entries affected.
public Collection getContributors()
Collection
containing all registered
contributions. The objects in this Collection
will be
List
s containing the actual contributions.protected List getContributors(Class objectClass)
protected List addContributorsFor(Class objectClass)
protected List getContributors(Object object)
public boolean hasContributorsFor(Object object)
public boolean isApplicableTo(IStructuredSelection selection, IObjectContributor contributor)
public void registerContributor(IObjectContributor contributor, String targetType)
IContributorManager#registerContributor
public void unregisterAllContributors()
IContributorManager#unregisterAllContributors
public void unregisterContributor(IObjectContributor contributor, String targetType)
IContributorManager#unregisterContributor
public void unregisterContributors(String targetType)
IContributorManager#unregisterContributors
protected List getContributors(Class objectClass, Class resourceClass)
protected Object getAdaptedResource(Object object)
object
- Object
IResource
or null
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |