Interface PersistenceTypeHandlerEnsurer<D>
- All Superinterfaces:
PersistenceDataTypeHolder<D>
,PersistenceTypeHandlerIterable<D>
- All Known Subinterfaces:
PersistenceTypeHandlerProvider<D>
- All Known Implementing Classes:
PersistenceTypeHandlerEnsurer.Default
,PersistenceTypeHandlerProviderCreating
,PersistenceTypeHandlerProviderFailing
public interface PersistenceTypeHandlerEnsurer<D> extends PersistenceTypeHandlerIterable<D>, PersistenceDataTypeHolder<D>
Named "ensurer" because depending on the case, it creates a new type handler or it just returns
already existing, pre-registered ones. So "ensuring" is the most fitting common denominator.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceTypeHandlerEnsurer.Default<D>
-
Method Summary
Modifier and Type Method Description <T> PersistenceTypeHandler<D,? super T>
ensureTypeHandler(Class<T> type)
static <D> PersistenceTypeHandlerEnsurer.Default<D>
New(Class<D> dataType, PersistenceCustomTypeHandlerRegistry<D> customTypeHandlerRegistry, PersistenceTypeAnalyzer typeAnalyzer, LambdaTypeRecognizer lambdaTypeRecognizer, PersistenceAbstractTypeHandlerSearcher<D> abstractTypeHandlerSearcher, PersistenceTypeHandlerCreator<D> typeHandlerCreator)
Methods inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
dataType
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerIterable
iterateAllTypeHandlers, iterateLegacyTypeHandlers, iterateTypeHandlers
-
Method Details
-
ensureTypeHandler
<T> PersistenceTypeHandler<D,? super T> ensureTypeHandler(Class<T> type) throws PersistenceExceptionTypeNotPersistable -
New
static <D> PersistenceTypeHandlerEnsurer.Default<D> New(Class<D> dataType, PersistenceCustomTypeHandlerRegistry<D> customTypeHandlerRegistry, PersistenceTypeAnalyzer typeAnalyzer, LambdaTypeRecognizer lambdaTypeRecognizer, PersistenceAbstractTypeHandlerSearcher<D> abstractTypeHandlerSearcher, PersistenceTypeHandlerCreator<D> typeHandlerCreator)
-