Package org.ametys.core.cocoon
Class XHTMLSerializerExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.AbstractExtensionPoint<String>
-
- org.ametys.core.cocoon.XHTMLSerializerExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<String>
,Initializable
,Component
public class XHTMLSerializerExtensionPoint extends AbstractExtensionPoint<String>
This extension point allows to configure the xhtml serializer by adding new plugins
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>
_allowedNamespaces
static String
ROLE
The avalon role-
Fields inherited from class org.ametys.runtime.plugin.AbstractExtensionPoint
_extensions
-
-
Constructor Summary
Constructors Constructor Description XHTMLSerializerExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtension(String id, String pluginName, String featureName, Configuration configuration)
Add an extension to this point.Set<String>
getAllowedNamespaces()
Get the list of allowed namespacevoid
initializeExtensions()
Finalize the initialization of the extensions.
This method is called after alladdExtension()
calls.
This is the last step before the actual startup of the application.-
Methods inherited from class org.ametys.runtime.plugin.AbstractExtensionPoint
getExtension, getExtensionsIds, hasExtension, initialize
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_allowedNamespaces
private Set<String> _allowedNamespaces
-
-
Constructor Detail
-
XHTMLSerializerExtensionPoint
public XHTMLSerializerExtensionPoint()
-
-
Method Detail
-
addExtension
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException
Description copied from interface:ExtensionPoint
Add an extension to this point. Each implementation knows the meaning of the given configuration.- Parameters:
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 added- Throws:
ConfigurationException
- when a configuration problem occurs
-
initializeExtensions
public void initializeExtensions() throws Exception
Description copied from interface:ExtensionPoint
Finalize the initialization of the extensions.
This method is called after alladdExtension()
calls.
This is the last step before the actual startup of the application.- Throws:
Exception
- if something wrong occurs
-
getAllowedNamespaces
public Set<String> getAllowedNamespaces()
Get the list of allowed namespace- Returns:
- The non null list of namespaces
-
-