T - the type of the managed extensionspublic abstract class AbstractComponentExtensionPoint<T> extends AbstractLogEnabled implements ExtensionPoint<T>, Component, ThreadSafe, Serviceable, Contextualizable, Initializable, Disposable
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | AbstractComponentExtensionPoint.ExtensionConfigurationThis class is a storage for an extension informations | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Context | _contextAvalon context | 
| protected Map<String,AbstractComponentExtensionPoint.ExtensionConfiguration> | _extensionsExtensions id and configuration associated | 
| protected ServiceManager | _managerAvalon service manager | 
| Constructor and Description | 
|---|
| AbstractComponentExtensionPoint() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addExtension(String id,
            String pluginName,
            String featureName,
            Configuration configuration)Add an extension to this point. | 
| void | contextualize(Context context) | 
| void | dispose() | 
| T | getExtension(String id)Returns the named extension | 
| Set<String> | getExtensionsIds()Returns a Set containing the ids of all known extensions | 
| boolean | hasExtension(String id)Returns true if the named extension exists | 
| void | initialize() | 
| void | initializeExtensions()Finalize the initialization of the extensions. This method is called after all addExtension()calls.This is the last step before the actual startup of the application. | 
| void | service(ServiceManager manager) | 
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected ServiceManager _manager
protected Map<String,AbstractComponentExtensionPoint.ExtensionConfiguration> _extensions
public AbstractComponentExtensionPoint()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void initialize() throws Exception
initialize in interface InitializableExceptionpublic void dispose()
dispose in interface Disposablepublic void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException
ExtensionPointaddExtension in interface ExtensionPoint<T>id - the unique identifier of the extension.pluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)configuration - the information about the extension to be addedConfigurationException - when a configuration problem occurspublic T getExtension(String id)
ExtensionPointgetExtension in interface ExtensionPoint<T>id - the unique id of the extensionpublic Set<String> getExtensionsIds()
ExtensionPointgetExtensionsIds in interface ExtensionPoint<T>public boolean hasExtension(String id)
ExtensionPointhasExtension in interface ExtensionPoint<T>id - the unique id of the extensionpublic void initializeExtensions() throws Exception
ExtensionPointaddExtension() calls.initializeExtensions in interface ExtensionPoint<T>Exception - if something wrong occurs