Package org.ametys.core.migration
Class MigrationExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.AbstractExtensionPoint<MigrationEngine.MigrationComponent>
org.ametys.core.migration.MigrationExtensionPoint
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<MigrationEngine.MigrationComponent>,Initializable,Component,Configurable,Serviceable
public class MigrationExtensionPoint
extends AbstractExtensionPoint<MigrationEngine.MigrationComponent>
implements Serviceable, Configurable
Migration Extension Point that will list all migration needed by the current state of the application
-
Field Summary
FieldsFields inherited from class org.ametys.runtime.plugin.AbstractExtensionPoint
_extensions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(String id, String pluginName, String featureName, Configuration configuration) Add an extension to this point.voidconfigure(Configuration configuration) voidFinalize 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.AbstractExtensionPoint
getExtension, getExtensionsIds, hasExtension, initializeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
MigrationExtensionPoint
public MigrationExtensionPoint()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
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<MigrationEngine.MigrationComponent>- 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
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<MigrationEngine.MigrationComponent>- Throws:
Exception- if something wrong occurs
-