Package org.ametys.web.site
Class SiteConfigurationExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>
org.ametys.web.site.SiteConfigurationExtensionPoint
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<SiteParameterWrapper>,Disposable,Initializable,Component,Contextualizable,Serviceable,ThreadSafe
public class SiteConfigurationExtensionPoint
extends AbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>
Extension point holding all
SiteParameterWrapper definitions.-
Field Summary
FieldsFields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_addParameter(String pluginName, String featureName, Configuration configuration) Declare a site parameter.voidaddExtension(String id, String pluginName, String featureName, Configuration configuration) Add an extension to this point.voiddispose()Dispose the manager before restarting itgetExtension(String id) Returns the named extensionReturns a Set containing the ids of all known extensionsbooleanhasExtension(String id) Returns true if the named extension existsvoidvoidFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, contextualize, deferredInitializeExtensionsMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
SiteConfigurationExtensionPoint
public SiteConfigurationExtensionPoint()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceInitializable- Overrides:
initializein classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- Throws:
Exception
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- Throws:
ServiceException
-
dispose
Dispose the manager before restarting it- Specified by:
disposein interfaceDisposable- Overrides:
disposein classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>
-
hasExtension
Description copied from interface:ExtensionPointReturns true if the named extension exists- Specified by:
hasExtensionin interfaceExtensionPoint<SiteParameterWrapper>- Overrides:
hasExtensionin classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- Parameters:
id- the unique id of the extension- Returns:
- true if the named extension exists
-
addExtension
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException Description copied from interface:ExtensionPointAdd an extension to this point. Each implementation knows the meaning of the given configuration.- Specified by:
addExtensionin interfaceExtensionPoint<SiteParameterWrapper>- Overrides:
addExtensionin classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- 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
-
_addParameter
protected void _addParameter(String pluginName, String featureName, Configuration configuration) throws ConfigurationException Declare a site parameter.- Parameters:
pluginName- The name of the plugin declaring the extension.featureName- the name of the featureconfiguration- The parameter configuration.- Throws:
ConfigurationException- if configuration is not complete.
-
getExtension
Description copied from interface:ExtensionPointReturns the named extension- Specified by:
getExtensionin interfaceExtensionPoint<SiteParameterWrapper>- Overrides:
getExtensionin classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- 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<SiteParameterWrapper>- Overrides:
getExtensionsIdsin classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- Returns:
- a Set containing the ids of all known extensions
-
initializeExtensions
Description copied from interface:ExtensionPointFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- Specified by:
initializeExtensionsin interfaceExtensionPoint<SiteParameterWrapper>- Overrides:
initializeExtensionsin classAbstractThreadSafeComponentExtensionPoint<SiteParameterWrapper>- Throws:
Exception- if something wrong occurs
-