public final class RegistryContributor extends Object implements IContributor
This class can be instantiated by the registry Service Providers.
This class can be used without OSGi running.
This class can not be extended.
Constructor and Description |
---|
RegistryContributor(String actualId,
String actualName,
String hostId,
String hostName)
Constructor for the registry contributor.
|
Modifier and Type | Method and Description |
---|---|
String |
getActualId()
Provides actual ID associated with the registry contributor (e.g., "12").
|
String |
getActualName()
Provides actual name of the registry contributor (e.g., "org.eclipe.core.runtime.fragment").
|
String |
getId()
Provides ID associated with the entity "in charge" of the contributor (e.g., "1").
|
String |
getName()
Provides name of the entity "in charge" of the contributor (e.g., "org.eclipse.core.runtime").
|
String |
toString() |
public RegistryContributor(String actualId, String actualName, String hostId, String hostName)
The actual ID is a string identifier for the contributor (e.g., "12") and is expected
to be unique within the workspace. The actual ID of the contributor must not
be null
.
The actual name is the name associated with the contributor
(e.g., "org.eclipse.core.runtime.fragment"). The actual name of the contributor must
not be null
.
The host ID is the identifier associated with the entity "in charge" of the contributor
(e.g., "1"). IDs are expected to be unique in the workspace. If contributor does not
rely on a host, then null
should be used as the host ID.
The host name is the name of the entity "in charge" of the contributor
(e.g., "org.eclipse.core.runtime"). If contributor does not rely on a host, then
null
should be used as the host name.
There should be 1-to-1 mapping between the contributor and the contibutor ID. The IDs (either actual or host) can not be re-used in the same registry. For example, if ID of 12 was used to identify contributorA, the ID of 12 can not be used to identify contributorB or a host for the contributorC.
actualId
- contributor identifieractualName
- name of the contributorhostId
- id associated with the host, or null
hostName
- name of the host, or null
public String getActualId()
public String getActualName()
public String getId()
public String getName()
getName
in interface IContributor
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.