Interface SerializerFoundation<F extends SerializerFoundation<?>>
- Type Parameters:
F
- the foundation type
- All Superinterfaces:
BinaryPersistenceFoundation<F>
,ByteOrderTargeting<F>
,ByteOrderTargeting.Mutable<F>
,Cloneable<PersistenceFoundation<Binary,F>>
,InstanceDispatcher
,PersistenceDataTypeHolder<Binary>
,PersistenceFoundation<Binary,F>
,PersistenceTypeHandlerRegistration.Executor<Binary>
- All Known Implementing Classes:
SerializerFoundation.Default
public interface SerializerFoundation<F extends SerializerFoundation<?>> extends BinaryPersistenceFoundation<F>
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 hidden 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
Modifier and Type Method Description SerializerFoundation<F>
Clone()
This method creates a new instance of the sameClass
, specified by <S>, of the instance on which this method is called.XEnum<Class<?>>
getEntityTypes()
SerializerTypeInfoStrategyCreator
getSerializerTypeInfoStrategyCreator()
static SerializerFoundation<?>
New()
boolean
registerEntityType(Class<?> entityType)
F
registerEntityTypes(Class<?>... entityTypes)
F
registerEntityTypes(Iterable<Class<?>> entityTypes)
F
setEntityTypes(XEnum<Class<?>> entityTypes)
F
setSerializerTypeInfoStrategyCreator(SerializerTypeInfoStrategyCreator serializerTypeInfoStrategyCreator)
Methods inherited from interface one.microstream.persistence.binary.types.BinaryPersistenceFoundation
createPersistenceManager, getCustomTranslatorLookup, getTranslatorKeyBuilders, getValueTranslatorMappingProvider, getValueTranslatorProvider, setCustomTranslatorLookup, setTranslatorKeyBuilders, setValueTranslatorMappingProvider, setValueTranslatorProvider
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.PersistenceFoundation
customTypeHandlerRegistryEnsurer, customTypeHandlers, customTypeInstantiators, getAbstractTypeHandlerSearcher, getBufferSizeProvider, getBuilderCreator, getClassLoaderProvider, getContextDispatcher, getCustomTypeHandlerRegistry, getCustomTypeHandlerRegistryEnsurer, getFieldEvaluatorCollection, getFieldEvaluatorEnum, getFieldEvaluatorPersistable, getFieldEvaluatorPersister, getFieldFixedLengthResolver, getInstantiator, getInstantiatorProvider, getLambdaTypeRecognizer, getLegacyMemberMatchingProvider, getLegacyTypeHandlerCreator, getLegacyTypeHandlingListener, getLegacyTypeMapper, getLegacyTypeMappingResultor, getObjectIdProvider, getObjectManager, getObjectRegistry, getPersistenceSource, getPersistenceTarget, getPersister, getRefactoringCurrentMemberIdentifierBuilders, getRefactoringLegacyMemberIdentifierBuilders, getRefactoringLegacyTypeIdentifierBuilders, getRefactoringMappingProvider, getReferenceFieldEagerEvaluator, getRegistererCreator, getRootReferenceProvider, getRootResolverProvider, getRootsProvider, getSizedArrayLengthController, getStorerCreationObserver, getStorerCreator, getTypeAnalyzer, getTypeDefinitionCreator, getTypeDescriptionResolverProvider, getTypeDictionaryAssembler, getTypeDictionaryBuilder, getTypeDictionaryCompiler, getTypeDictionaryCreator, getTypeDictionaryExporter, getTypeDictionaryLoader, getTypeDictionaryManager, getTypeDictionaryParser, getTypeDictionaryProvider, getTypeDictionaryStorer, getTypeEvaluatorPersistable, getTypeHandlerCreator, getTypeHandlerEnsurer, getTypeHandlerManager, getTypeHandlerProvider, getTypeHandlerRegistry, getTypeIdProvider, getTypeLineageCreator, getTypeManager, getTypeMismatchValidator, getTypeNameMapper, getTypeRegistry, getTypeResolver, getTypeSimilarity, getUnreachableTypeHandlerCreator, registerCustomInstantiator, registerCustomTypeHandler, registerCustomTypeHandlers, registerCustomTypeHandlers, registerCustomTypeHandlers, setAbstractTypeHandlerSearcher, setBufferSizeProvider, setBuilderCreator, setClassLoaderProvider, setContextDispatcher, setCustomTypeHandlerRegistryEnsurer, setFieldEvaluatorCollection, setFieldEvaluatorEnum, setFieldEvaluatorPersistable, setFieldEvaluatorPersister, setFieldFixedLengthResolver, setIdProvider, setInstanceDispatcher, setInstantiator, setInstantiatorProvider, setLambdaTypeRecognizer, setLegacyMemberMatchingProvider, setLegacyTypeHandlerCreator, setLegacyTypeHandlingListener, setLegacyTypeMapper, setLegacyTypeMappingResultor, setObjectIdProvider, setObjectManager, setObjectRegistry, setPersistenceChannel, setPersistenceSource, setPersistenceTarget, setPersister, setRefactoringCurrentMemberIdentifierBuilders, setRefactoringLegacyMemberIdentifierBuilders, setRefactoringLegacyTypeIdentifierBuilders, setRefactoringMappingProvider, setReferenceFieldEagerEvaluator, setRegistererCreator, setRootReferenceProvider, setRootResolverProvider, setRootsProvider, setSizedArrayLengthController, setStorerCreationObserver, setStorerCreator, setTypeAnalyzer, setTypeDescriptionBuilder, setTypeDescriptionResolverProvider, setTypeDictionaryAssembler, setTypeDictionaryBuilder, setTypeDictionaryCompiler, setTypeDictionaryCreator, setTypeDictionaryExporter, setTypeDictionaryIoHandler, setTypeDictionaryIoHandling, setTypeDictionaryLoader, setTypeDictionaryManager, setTypeDictionaryParser, setTypeDictionaryProvider, setTypeDictionaryStorer, setTypeEvaluatorPersistable, setTypeHandlerCreator, setTypeHandlerCreatorLookup, setTypeHandlerManager, setTypeHandlerProvider, setTypeHandlerRegistry, setTypeIdProvider, setTypeLineageCreator, setTypeManager, setTypeMismatchValidator, setTypeNameMapper, setTypeRegistry, setTypeResolver, setTypeSimilarity, setUnreachableTypeHandlerCreator
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerRegistration.Executor
executeTypeHandlerRegistration
-
Method Details
-
Clone
SerializerFoundation<F> Clone()Description copied from interface:Cloneable
This method creates a new instance of the sameClass
, specified by <S>, of the instance on which this method is called. Whatever initializations required to create a functional new instance are performed.However, this method does NOT create a copy of the current instance. (A common mistake is to confuse cloning with copying: cloning creates a duplicate with only equal initial state while copying creates a duplicate with equal full state. Example: a clone of an adult would not be an identical adult, but just an embryo with equal DNA. A state-wise identical adult would be a copy, not a clone.)
This method is effectively a constructor called on an existing instance. The use case of such a method is to eliminate the need to redundantly pass a second instance or constructor if a clone of an instance is needed.
To indicate the constructor-like character of this method, the pattern of starting the name with a capital letter is applied to this method
- Specified by:
Clone
in interfaceBinaryPersistenceFoundation<F extends SerializerFoundation<?>>
- Specified by:
Clone
in interfaceCloneable<F extends SerializerFoundation<?>>
- Specified by:
Clone
in interfacePersistenceFoundation<Binary,F extends SerializerFoundation<?>>
- Returns:
- a clone of this instance.
-
getSerializerTypeInfoStrategyCreator
SerializerTypeInfoStrategyCreator getSerializerTypeInfoStrategyCreator() -
setSerializerTypeInfoStrategyCreator
F setSerializerTypeInfoStrategyCreator(SerializerTypeInfoStrategyCreator serializerTypeInfoStrategyCreator) -
getEntityTypes
-
setEntityTypes
-
registerEntityType
-
registerEntityTypes
-
registerEntityTypes
-
New
-