public class NamespacesExtensionPoint extends AbstractLogEnabled implements ExtensionPoint<String>, Component
ExtensionPoint hosting the JCR namespaces.| Modifier and Type | Field and Description |
|---|---|
private Map<String,String> |
_namespaces |
static String |
ROLE
Avalon Role
|
| Constructor and Description |
|---|
NamespacesExtensionPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(String id,
String pluginName,
String featureName,
Configuration configuration)
Add an extension to this point.
|
String |
getExtension(String id)
Returns the named extension
|
Set<String> |
getExtensionsIds()
Returns a Set containing the ids of all known extensions
|
String |
getNamespace(String prefix)
Returns the namespace for the given prefix or null if none.
|
boolean |
hasExtension(String id)
Returns true if the named extension exists
|
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. |
getLogger, setLoggerprivate Map<String,String> _namespaces
public NamespacesExtensionPoint()
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException
ExtensionPointaddExtension in interface ExtensionPoint<String>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 void initializeExtensions() throws Exception
ExtensionPointaddExtension() calls.initializeExtensions in interface ExtensionPoint<String>Exception - if something wrong occurspublic boolean hasExtension(String id)
ExtensionPointhasExtension in interface ExtensionPoint<String>id - the unique id of the extensionpublic String getExtension(String id)
ExtensionPointgetExtension in interface ExtensionPoint<String>id - the unique id of the extensionpublic Set<String> getExtensionsIds()
ExtensionPointgetExtensionsIds in interface ExtensionPoint<String>public String getNamespace(String prefix)
prefix - the prefix.