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, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddExtension, initializeExtensionsprotected Map<String,T> _extensions
public AbstractExtensionPoint()
public void initialize() throws Exception
initialize in interface InitializableExceptionpublic 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 extension