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
Fields inherited from class org.ametys.runtime.plugin.AbstractExtensionPoint
_extensions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension
(String id, String pluginName, String featureName, Configuration configuration) Add an extension to this point.void
configure
(Configuration configuration) void
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.void
service
(ServiceManager manager) 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 Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
MigrationExtensionPoint
public MigrationExtensionPoint()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
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.- Specified by:
addExtension
in 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: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.- Specified by:
initializeExtensions
in interfaceExtensionPoint<MigrationEngine.MigrationComponent>
- Throws:
Exception
- if something wrong occurs
-