Interface SerializerFoundation<F extends SerializerFoundation<?>>
- Type Parameters:
F
- the foundation type
- All Superinterfaces:
ByteOrderTargeting<F>
,ByteOrderTargeting.Mutable<F>
,InstanceDispatcher
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeHandlerRegistration.Executor<Binary>
- All Known Implementing Classes:
SerializerFoundation.Default
public interface SerializerFoundation<F extends SerializerFoundation<?>> extends ByteOrderTargeting.Mutable<F>, PersistenceDataTypeHolder<Binary>, PersistenceTypeHandlerRegistration.Executor<Binary>, InstanceDispatcher
This type serves as a factory instance for buidling
Serializer
instances.
However, it is more than a mere factory as it keeps track of all component instances used in building
a Serializer
instance. For example managing parts of an application can use it
to access former set ID providers or dictionary providers even after they have been assembled into (and
are intentionally hindden in) a PersistenceManager
instance.*
Hence it can be seen as a kind of "master instance" of the built persistence layer or as its "foundation".-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SerializerFoundation.Default<F extends SerializerFoundation.Default<?>>
Nested classes/interfaces inherited from interface one.microstream.persistence.types.ByteOrderTargeting
ByteOrderTargeting.Mutable<T extends ByteOrderTargeting.Mutable<?>>
-
Method Summary
Methods inherited from interface one.microstream.persistence.types.ByteOrderTargeting
getTargetByteOrder, isByteOrderMismatch
Methods inherited from interface one.microstream.persistence.types.ByteOrderTargeting.Mutable
setTargetByteOrder
Methods inherited from interface one.microstream.util.InstanceDispatcher
getInstanceDispatcherLogic, setInstanceDispatcherLogic
Methods inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
dataType
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerRegistration.Executor
executeTypeHandlerRegistration
-
Method Details
-
customTypeHandlers
XMap<Class<?>,PersistenceTypeHandler<Binary,?>> customTypeHandlers() -
customTypeInstantiators
XMap<Class<?>,PersistenceTypeInstantiator<Binary,?>> customTypeInstantiators() -
registerCustomTypeHandlers
F registerCustomTypeHandlers(HashTable<Class<?>,PersistenceTypeHandler<Binary,?>> customTypeHandlers) -
registerCustomTypeHandlers
-
registerCustomTypeHandlers
F registerCustomTypeHandlers(Iterable<? extends PersistenceTypeHandler<Binary,?>> customTypeHandlers) -
registerCustomTypeHandler
-
registerCustomInstantiator
<T> F registerCustomInstantiator(Class<T> type, PersistenceTypeInstantiator<Binary,T> typeInstantiator) -
getObjectIdProvider
PersistenceObjectIdProvider getObjectIdProvider() -
getTypeIdProvider
PersistenceTypeIdProvider getTypeIdProvider() -
getStorerCreator
PersistenceStorer.Creator<Binary> getStorerCreator() -
getRegistererCreator
PersistenceRegisterer.Creator getRegistererCreator() -
getBuilderCreator
PersistenceLoader.Creator<Binary> getBuilderCreator() -
getPersister
Persister getPersister() -
getObjectRegistry
PersistenceObjectRegistry getObjectRegistry() -
getObjectManager
PersistenceObjectManager<Binary> getObjectManager() -
getTypeRegistry
PersistenceTypeRegistry getTypeRegistry() -
getTypeManager
PersistenceTypeManager getTypeManager() -
getTypeHandlerManager
PersistenceTypeHandlerManager<Binary> getTypeHandlerManager() -
getContextDispatcher
PersistenceContextDispatcher<Binary> getContextDispatcher() -
getTypeHandlerProvider
PersistenceTypeHandlerProvider<Binary> getTypeHandlerProvider() -
getTypeHandlerEnsurer
PersistenceTypeHandlerEnsurer<Binary> getTypeHandlerEnsurer() -
getTypeHandlerRegistry
PersistenceTypeHandlerRegistry<Binary> getTypeHandlerRegistry() -
getTypeDictionaryManager
PersistenceTypeDictionaryManager getTypeDictionaryManager() -
getTypeDictionaryCreator
PersistenceTypeDictionaryCreator getTypeDictionaryCreator() -
getTypeLineageCreator
PersistenceTypeLineageCreator getTypeLineageCreator() -
getTypeHandlerCreator
PersistenceTypeHandlerCreator<Binary> getTypeHandlerCreator() -
getCustomTypeHandlerRegistry
PersistenceCustomTypeHandlerRegistry<Binary> getCustomTypeHandlerRegistry()Creates if required and returns thePersistenceCustomTypeHandlerRegistry
containing all custom tailoredPersistenceTypeHandler
instances for specialized handling of instances.To avoid order problems caused by internal implicit dependencies (e.g. creating the default custom type handlers required
getReferenceFieldEagerEvaluator()
), usecustomTypeHandlers()
or one of theregisterCustomTypeHandler~
methods.- Returns:
- the (on-demand created)
PersistenceCustomTypeHandlerRegistry
instance.
-
getTypeAnalyzer
PersistenceTypeAnalyzer getTypeAnalyzer() -
getTypeResolver
PersistenceTypeResolver getTypeResolver() -
getClassLoaderProvider
ClassLoaderProvider getClassLoaderProvider() -
getTypeMismatchValidator
PersistenceTypeMismatchValidator<Binary> getTypeMismatchValidator() -
getTypeDefinitionCreator
PersistenceTypeDefinitionCreator getTypeDefinitionCreator() -
getTypeEvaluatorPersistable
PersistenceTypeEvaluator getTypeEvaluatorPersistable() -
getFieldFixedLengthResolver
PersistenceFieldLengthResolver getFieldFixedLengthResolver() -
getTypeNameMapper
PersistenceTypeNameMapper getTypeNameMapper() -
getReferenceFieldEagerEvaluator
PersistenceEagerStoringFieldEvaluator getReferenceFieldEagerEvaluator() -
getBufferSizeProvider
BufferSizeProviderIncremental getBufferSizeProvider() -
getFieldEvaluatorPersistable
PersistenceFieldEvaluator getFieldEvaluatorPersistable() -
getFieldEvaluatorPersister
PersistenceFieldEvaluator getFieldEvaluatorPersister() -
getFieldEvaluatorEnum
PersistenceFieldEvaluator getFieldEvaluatorEnum() -
getFieldEvaluatorCollection
PersistenceFieldEvaluator getFieldEvaluatorCollection() -
getRootResolverProvider
PersistenceRootResolverProvider getRootResolverProvider() -
getRootReferenceProvider
PersistenceRootReferenceProvider<Binary> getRootReferenceProvider() -
getRootsProvider
PersistenceRootsProvider<Binary> getRootsProvider() -
getUnreachableTypeHandlerCreator
PersistenceUnreachableTypeHandlerCreator<Binary> getUnreachableTypeHandlerCreator() -
getLegacyTypeMapper
PersistenceLegacyTypeMapper<Binary> getLegacyTypeMapper() -
getRefactoringMappingProvider
PersistenceRefactoringMappingProvider getRefactoringMappingProvider() -
getTypeDescriptionResolverProvider
PersistenceTypeDescriptionResolverProvider getTypeDescriptionResolverProvider() -
getRefactoringLegacyTypeIdentifierBuilders
XEnum<? extends PersistenceRefactoringTypeIdentifierBuilder> getRefactoringLegacyTypeIdentifierBuilders() -
getRefactoringLegacyMemberIdentifierBuilders
XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> getRefactoringLegacyMemberIdentifierBuilders() -
getRefactoringCurrentMemberIdentifierBuilders
XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> getRefactoringCurrentMemberIdentifierBuilders() -
getTypeSimilarity
TypeMapping<Float> getTypeSimilarity() -
getLegacyMemberMatchingProvider
PersistenceMemberMatchingProvider getLegacyMemberMatchingProvider() -
getLegacyTypeMappingResultor
PersistenceLegacyTypeMappingResultor<Binary> getLegacyTypeMappingResultor() -
getLegacyTypeHandlerCreator
PersistenceLegacyTypeHandlerCreator<Binary> getLegacyTypeHandlerCreator() -
getLegacyTypeHandlingListener
PersistenceLegacyTypeHandlingListener<Binary> getLegacyTypeHandlingListener() -
getSizedArrayLengthController
PersistenceSizedArrayLengthController getSizedArrayLengthController() -
getLambdaTypeRecognizer
LambdaTypeRecognizer getLambdaTypeRecognizer() -
getAbstractTypeHandlerSearcher
PersistenceAbstractTypeHandlerSearcher<Binary> getAbstractTypeHandlerSearcher() -
getInstantiator
PersistenceInstantiator<Binary> getInstantiator() -
getInstantiatorProvider
PersistenceTypeInstantiatorProvider<Binary> getInstantiatorProvider() -
getEntityTypes
-
setObjectRegistry
-
setTypeRegistry
-
setInstanceDispatcher
-
setObjectManager
-
setStorerCreator
-
setTypeHandlerManager
-
setTypeManager
-
setTypeHandlerCreatorLookup
-
setTypeHandlerCreator
-
setTypeAnalyzer
-
setTypeResolver
-
setClassLoaderProvider
-
setTypeHandlerRegistry
-
setTypeHandlerProvider
-
setRegistererCreator
-
setBuilderCreator
-
setPersister
-
setTypeDictionaryCreator
-
setTypeLineageCreator
-
setTypeMismatchValidator
-
setTypeDescriptionBuilder
-
setTypeEvaluatorPersistable
-
setBufferSizeProvider
-
setFieldFixedLengthResolver
-
setTypeNameMapper
-
setFieldEvaluatorPersistable
-
setFieldEvaluatorPersister
-
setFieldEvaluatorEnum
-
setFieldEvaluatorCollection
-
setReferenceFieldEagerEvaluator
-
setRootResolverProvider
-
setRootReferenceProvider
-
setLambdaTypeRecognizer
-
setAbstractTypeHandlerSearcher
F setAbstractTypeHandlerSearcher(PersistenceAbstractTypeHandlerSearcher<Binary> abstractTypeHandlerSearcher) -
setUnreachableTypeHandlerCreator
F setUnreachableTypeHandlerCreator(PersistenceUnreachableTypeHandlerCreator<Binary> unreachableTypeHandlerCreator) -
setLegacyTypeMapper
-
setTypeSimilarity
-
setRefactoringMappingProvider
-
setTypeDescriptionResolverProvider
F setTypeDescriptionResolverProvider(PersistenceTypeDescriptionResolverProvider typeDescriptionResolverProvider) -
setRefactoringLegacyTypeIdentifierBuilders
F setRefactoringLegacyTypeIdentifierBuilders(XEnum<? extends PersistenceRefactoringTypeIdentifierBuilder> typeIdentifierBuilders) -
setRefactoringLegacyMemberIdentifierBuilders
F setRefactoringLegacyMemberIdentifierBuilders(XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> memberIdentifierBuilders) -
setRefactoringCurrentMemberIdentifierBuilders
F setRefactoringCurrentMemberIdentifierBuilders(XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> memberIdentifierBuilders) -
setLegacyMemberMatchingProvider
-
setLegacyTypeMappingResultor
F setLegacyTypeMappingResultor(PersistenceLegacyTypeMappingResultor<Binary> legacyTypeMappingResultor) -
setLegacyTypeHandlerCreator
F setLegacyTypeHandlerCreator(PersistenceLegacyTypeHandlerCreator<Binary> legacyTypeHandlerCreator) -
setLegacyTypeHandlingListener
F setLegacyTypeHandlingListener(PersistenceLegacyTypeHandlingListener<Binary> legacyTypeHandlingListener) -
setSizedArrayLengthController
-
setInstantiator
-
setInstantiatorProvider
-
getCustomTranslatorLookup
XTable<String,BinaryValueSetter> getCustomTranslatorLookup() -
getTranslatorKeyBuilders
XEnum<BinaryValueTranslatorKeyBuilder> getTranslatorKeyBuilders() -
getValueTranslatorMappingProvider
BinaryValueTranslatorMappingProvider getValueTranslatorMappingProvider() -
getValueTranslatorProvider
BinaryValueTranslatorProvider getValueTranslatorProvider() -
setEntityTypes
-
registerEntityType
-
registerEntityTypes
-
registerEntityTypes
-
setCustomTranslatorLookup
-
setTranslatorKeyBuilders
-
setValueTranslatorProvider
-
setValueTranslatorMappingProvider
F setValueTranslatorMappingProvider(BinaryValueTranslatorMappingProvider valueTranslatorMappingProvider) -
createPersistenceManager
PersistenceManager<Binary> createPersistenceManager(PersistenceSource<Binary> source, PersistenceTarget<Binary> target) -
New
-