net.sf.jame.core.extension.osgi
Class OSGiExtensionRegistry<T extends ExtensionRuntime>

java.lang.Object
  extended by net.sf.jame.core.extension.osgi.OSGiExtensionRegistry<T>
Type Parameters:
T - the extension runtime type.
All Implemented Interfaces:
ExtensionRegistry<T>
Direct Known Subclasses:
ActionXMLExporterExtensionRegistry, ActionXMLImporterExtensionRegistry, ColorRendererFormulaExtensionRegistry, ConstructorExtensionRegistry, ConverterExtensionRegistry, CreatorExtensionRegistry, EditorExtensionRegistry, EncoderViewExtensionRegistry, EnumeratorExtensionRegistry, ExtensionConfigXMLExporterExtensionRegistry, ExtensionConfigXMLImporterExtensionRegistry, InputAdapterExtensionRegistry, NodeBuilderExtensionRegistry, PaletteRendererFormulaExtensionRegistry, ProcessingFormulaExtensionRegistry, ViewExtensionRegistry

public class OSGiExtensionRegistry<T extends ExtensionRuntime>
extends java.lang.Object
implements ExtensionRegistry<T>

OSGi extension registry.

Author:
Andrea Medeghini

Constructor Summary
protected OSGiExtensionRegistry(java.lang.String extensionPointName, OSGiExtensionBuilder<T> builder)
          Constructs a new extension registry.
 
Method Summary
 Extension<T> getExtension(java.lang.String extensionId)
          Returns an extension.
 java.util.List<Extension<T>> getExtensionList()
          Returns the list of extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiExtensionRegistry

protected OSGiExtensionRegistry(java.lang.String extensionPointName,
                                OSGiExtensionBuilder<T> builder)
Constructs a new extension registry.

Parameters:
extensionPointName - the extension point name.
builder - the extension builder.
Method Detail

getExtensionList

public java.util.List<Extension<T>> getExtensionList()
Description copied from interface: ExtensionRegistry
Returns the list of extensions.

Specified by:
getExtensionList in interface ExtensionRegistry<T extends ExtensionRuntime>
Returns:
the list of extensions.
See Also:
ExtensionRegistry.getExtensionList()

getExtension

public Extension<T> getExtension(java.lang.String extensionId)
                                                   throws ExtensionNotFoundException
Description copied from interface: ExtensionRegistry
Returns an extension.

Specified by:
getExtension in interface ExtensionRegistry<T extends ExtensionRuntime>
Parameters:
extensionId - the extensionId.
Returns:
the extension.
Throws:
ExtensionNotFoundException - if the extension can't be found.
See Also:
ExtensionRegistry.getExtension(java.lang.String)