T
- the type of the managed extensionspublic abstract class AbstractExtensionPoint<T> extends AbstractLogEnabled implements ExtensionPoint<T>, Initializable, Component
ExtensionPoint.addExtension(String, String, String, org.apache.avalon.framework.configuration.Configuration)
Modifier and Type | Field and Description |
---|---|
protected Map<String,T> |
_extensions
Map containing the extensions.
The key is the unique id of the extension. |
Constructor and Description |
---|
AbstractExtensionPoint() |
Modifier and Type | Method and Description |
---|---|
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() |
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addExtension, initializeExtensions
protected Map<String,T> _extensions
public AbstractExtensionPoint()
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public T getExtension(String id)
ExtensionPoint
getExtension
in interface ExtensionPoint<T>
id
- the unique id of the extensionpublic Set<String> getExtensionsIds()
ExtensionPoint
getExtensionsIds
in interface ExtensionPoint<T>
public boolean hasExtension(String id)
ExtensionPoint
hasExtension
in interface ExtensionPoint<T>
id
- the unique id of the extension