org.eclipse.higgins.registry.plugin
Class PluginRegistryExtension
java.lang.Object
org.eclipse.higgins.registry.plugin.PluginRegistryExtension
- Type Parameters:
E - the service provider type to search for
- All Implemented Interfaces:
- IRegistryExtension
public abstract class PluginRegistryExtension
- extends Object
- implements IRegistryExtension
This implementation of
IRegistryExtension uses Eclipse
extension point mechanism to lookup for available service providers.
- See Also:
IRegistryExtension
|
Method Summary |
abstract IServiceProvider |
createProvider(org.eclipse.core.runtime.IExtension extension,
org.eclipse.core.runtime.IConfigurationElement element)
Create an instance of type using provided extension
and element. |
Iterator |
getServiceProviders()
Searches for implementations of a particular service provider type. |
PluginRegistryExtension
public PluginRegistryExtension(String xpid)
createProvider
public abstract IServiceProvider createProvider(org.eclipse.core.runtime.IExtension extension,
org.eclipse.core.runtime.IConfigurationElement element)
throws RegistryException
- Create an instance of type using provided
extension
and element.
- Parameters:
extension - element -
- Returns:
-
- Throws:
RegistryException
getServiceProviders
public Iterator getServiceProviders()
- Description copied from interface:
IRegistryExtension
- Searches for implementations of a particular service provider type.
Instantiates and returns all available service providers of appropriate
type
E>.
- Specified by:
getServiceProviders in interface IRegistryExtension
- Returns:
- an
Iterator set of IServiceProviders