Interface VersionHandler
- All Known Implementing Classes:
JavaVersionHandler
,ScriptVersionHandler
,StorageBasedVersionHandler
public interface VersionHandler
Handler to retrieve all versions
-
Method Summary
Modifier and TypeMethodDescriptioncreateVersionConfiguration
(Configuration configuration) Creates aVersionConfiguration
associated with thisVersionHandler
getVersions
(MigrationEngine.MigrationComponent component) Retrieves a hierarchical view of allVersion
managed by this component.getVersionStorage
(VersionConfiguration configuration) Returns theVersionStorage
associated with thisVersionHandler
.
-
Method Details
-
getVersionStorage
Returns theVersionStorage
associated with thisVersionHandler
.- Parameters:
configuration
- the associated configuration- Returns:
- the associated
VersionStorage
- Throws:
MigrationException
- if an exception occur while getting the version storage
-
getVersions
MigrationEngine.Versions getVersions(MigrationEngine.MigrationComponent component) throws MigrationException Retrieves a hierarchical view of allVersion
managed by this component.- Parameters:
component
- the context component- Returns:
- all
Version
managed by this component - Throws:
MigrationException
- something went wrong while retrieveing the versions
-
createVersionConfiguration
VersionConfiguration createVersionConfiguration(Configuration configuration) throws ConfigurationException, NotMigrableInSafeModeException Creates aVersionConfiguration
associated with thisVersionHandler
- Parameters:
configuration
- theConfiguration
for retrieving versions- Returns:
- a configuration for this type of version handler
- Throws:
ConfigurationException
- something is wrong in the configurationNotMigrableInSafeModeException
- if it's impossible to configure the versions in safe mode
-