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