Interface PersistenceTypeHandlerEnsurer<M>
-
- All Superinterfaces:
PersistenceTypeHandlerIterable<M>
- All Known Subinterfaces:
PersistenceTypeHandlerProvider<M>
- All Known Implementing Classes:
PersistenceTypeHandlerEnsurer.Default
,PersistenceTypeHandlerProviderCreating
,PersistenceTypeHandlerProviderFailing
public interface PersistenceTypeHandlerEnsurer<M> extends PersistenceTypeHandlerIterable<M>
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<M>
-
Method Summary
Modifier and Type Method Description <T> PersistenceTypeHandler<M,T>
ensureTypeHandler(Class<T> type)
static <M> PersistenceTypeHandlerEnsurer.Default<M>
New(PersistenceCustomTypeHandlerRegistry<M> customTypeHandlerRegistry, PersistenceTypeHandlerCreator<M> typeHandlerCreator)
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerIterable
iterateAllTypeHandlers, iterateLegacyTypeHandlers, iterateTypeHandlers
-
-
-
-
Method Detail
-
ensureTypeHandler
<T> PersistenceTypeHandler<M,T> ensureTypeHandler(Class<T> type) throws PersistenceExceptionTypeNotPersistable
-
New
static <M> PersistenceTypeHandlerEnsurer.Default<M> New(PersistenceCustomTypeHandlerRegistry<M> customTypeHandlerRegistry, PersistenceTypeHandlerCreator<M> typeHandlerCreator)
-
-