Spring Boot for VMware GemFire
Package org.springframework.geode.pdx
Class MappingPdxSerializerIncludedTypesRegistrar
java.lang.Object
org.springframework.geode.pdx.MappingPdxSerializerIncludedTypesRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class MappingPdxSerializerIncludedTypesRegistrar
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionMappingPdxSerializerIncludedTypesRegistrar(Class<?>[] types) Constructs a new instance ofMappingPdxSerializerIncludedTypesRegistrarinitialized with given, required array ofClasstypes that will be registered with SDG'sMappingPdxSerializerin order to de/serialize the specifiedClasstypes as PDX. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>[]getTypes()newIncludeTypeFilter(Class<?> type) postProcessAfterInitialization(Object bean, String beanName) Factory methods used to construct a new instance ofMappingPdxSerializerIncludedTypesRegistrarinitialized with given, required array ofClasstypes that will be registered with SDG'sMappingPdxSerializerin order to de/serialize the specifiedClasstypes as PDX.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
MappingPdxSerializerIncludedTypesRegistrar
Constructs a new instance ofMappingPdxSerializerIncludedTypesRegistrarinitialized with given, required array ofClasstypes that will be registered with SDG'sMappingPdxSerializerin order to de/serialize the specifiedClasstypes as PDX.
-
-
Method Details
-
with
Factory methods used to construct a new instance ofMappingPdxSerializerIncludedTypesRegistrarinitialized with given, required array ofClasstypes that will be registered with SDG'sMappingPdxSerializerin order to de/serialize the specifiedClasstypes as PDX.- Parameters:
types- array ofClasstypes to be de/serialized as PDX using SDG'sMappingPdxSerializer; must not be null.- Returns:
- a new instance of
MappingPdxSerializerIncludedTypesRegistrar - See Also:
-
getTypes
-
getCompositeIncludeTypeFilter
-
newIncludeTypeFilter
-
postProcessAfterInitialization
@Nullable public Object postProcessAfterInitialization(@Nullable Object bean, @Nullable String beanName) throws org.springframework.beans.BeansException Registers the configuredClasstypes with SDG'sMappingPdxSerializerproviding the bean to post process after initialization is aGemFireCacheinstance and SDG'sMappingPdxSerializerwas configured as the cache'sPdxSerializerused to de/serialize objects of the specifiedClasstypes.- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Parameters:
bean-beanto evaluate.beanName-Stringspecifying the name of the bean in the Spring container.- Returns:
- the given
Objectbean. - Throws:
org.springframework.beans.BeansException- if post processing of the bean fails.
-