org.eclipse.higgins.registry.plugin
Class PluginRegistryExtension

java.lang.Object
  extended byorg.eclipse.higgins.registry.plugin.PluginRegistryExtension
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

Constructor Summary
PluginRegistryExtension(String xpid)
           
 
Method Summary
abstract  IServiceProvider createProvider(IExtension extension, IConfigurationElement element)
          Create an instance of type using provided extension and element.
 Iterator getServiceProviders()
          Searches for implementations of a particular service provider type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginRegistryExtension

public PluginRegistryExtension(String xpid)
Method Detail

createProvider

public abstract IServiceProvider createProvider(IExtension extension,
                                                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