Interface MigrationAware
-
- All Known Implementing Classes:
DefaultFragmentTransformer
,DelegatingMigrationAwareFragmentTransformer
,DelegatingStorageMacroMarshaller
,StorageUserResourceIdentifierMarshaller
public interface MigrationAware
To be implemented by thoseFragmentTransformer
s,Unmarshaller
s andMarshaller
s which are aware of when they've made a transformation that constitutes a "migration" from one format to another.- Since:
- 5.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MigrationAware.MigrationPerformedPredicate
Wraps theMigrationAware
interface in aPredicate
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
wasMigrationPerformed(ConversionContext conversionContext)
Given aConversionContext
that was previously used to perform a migration, determine if that context contains information that indicates whether a "migration" was performed.
-
-
-
Method Detail
-
wasMigrationPerformed
boolean wasMigrationPerformed(ConversionContext conversionContext)
Given aConversionContext
that was previously used to perform a migration, determine if that context contains information that indicates whether a "migration" was performed. What constitutes a migration is implementation-dependent.- Parameters:
conversionContext
- the context used for the migration- Returns:
- true if migration was performed against the supplied context, false otherwise.
-
-