Class MigrationRegistry
java.lang.Object
ru.cg.webbpm.studio.core.api.migrations.MigrationRegistry
Stores converters by version and object class. Used in studio and packages' conversion modules.
- Author:
- krylov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns converters for specified version and object classGet all converters for specified version range and object typeNavigableMap<Version,
org.springframework.util.MultiValueMap<Class<?>, Converter<?>>> <T> void
Put a converterversionRange
(Version start, Version end) Returns all versions in specified range
-
Constructor Details
-
MigrationRegistry
public MigrationRegistry()
-
-
Method Details
-
put
Put a converter- Type Parameters:
T
- converter object type- Parameters:
version
- converter versionobjectClass
- class that converter convertsconverter
- the converter
-
get
public <T> List<Converter<T>> get(Version startExclusive, Version endInclusive, Class<T> objectClass) Get all converters for specified version range and object type- Type Parameters:
T
- object type- Parameters:
startExclusive
- min version, exclusiveendInclusive
- max version, inclusiveobjectClass
- object type- Returns:
- list of converters
-
get
Returns converters for specified version and object class- Parameters:
version
- the versionobjectClass
- the object class- Returns:
- converters list
-
versionRange
Returns all versions in specified range- Parameters:
start
- start inclusiveend
- end inclusive- Returns:
- sorted set of all versions in the range
-
getConverterMap
public NavigableMap<Version,org.springframework.util.MultiValueMap<Class<?>, getConverterMap()Converter<?>>>
-