Package org.ametys.runtime.plugin
Class AbstractExtensionPoint<T>
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.AbstractExtensionPoint<T>
- Type Parameters:
T- the type of the managed extensions
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<T>,Initializable,Component
- Direct Known Subclasses:
DocbookEnhancementExtensionPoint,HTMLEnhancementExtensionPoint,MigrationExtensionPoint,XHTMLSerializerExtensionPoint
public abstract class AbstractExtensionPoint<T>
extends AbstractLogEnabled
implements ExtensionPoint<T>, Initializable, Component
Abstract implementation of an extension point.
Contains only helper methods. Tha actual job has to be done in the
Contains only helper methods. Tha actual job has to be done in the
ExtensionPoint.addExtension(String, String, String, org.apache.avalon.framework.configuration.Configuration)-
Field Summary
FieldsModifier and TypeFieldDescriptionMap containing the extensions.
The key is the unique id of the extension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExtension(String id) Returns the named extensionReturns a Set containing the ids of all known extensionsbooleanhasExtension(String id) Returns true if the named extension existsvoidMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.plugin.ExtensionPoint
addExtension, initializeExtensions
-
Field Details
-
_extensions
Map containing the extensions.
The key is the unique id of the extension.
-
-
Constructor Details
-
AbstractExtensionPoint
public AbstractExtensionPoint()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
getExtension
Description copied from interface:ExtensionPointReturns the named extension- Specified by:
getExtensionin interfaceExtensionPoint<T>- Parameters:
id- the unique id of the extension- Returns:
- the named extension
-
getExtensionsIds
Description copied from interface:ExtensionPointReturns a Set containing the ids of all known extensions- Specified by:
getExtensionsIdsin interfaceExtensionPoint<T>- Returns:
- a Set containing the ids of all known extensions
-
hasExtension
Description copied from interface:ExtensionPointReturns true if the named extension exists- Specified by:
hasExtensionin interfaceExtensionPoint<T>- Parameters:
id- the unique id of the extension- Returns:
- true if the named extension exists
-