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
ConstructorDescriptionMappingPdxSerializerIncludedTypesRegistrar
(Class<?>[] types) Constructs a new instance ofMappingPdxSerializerIncludedTypesRegistrar
initialized with given, required array ofClass
types that will be registered with SDG'sMappingPdxSerializer
in order to de/serialize the specifiedClass
types 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 ofMappingPdxSerializerIncludedTypesRegistrar
initialized with given, required array ofClass
types that will be registered with SDG'sMappingPdxSerializer
in order to de/serialize the specifiedClass
types as PDX.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
MappingPdxSerializerIncludedTypesRegistrar
Constructs a new instance ofMappingPdxSerializerIncludedTypesRegistrar
initialized with given, required array ofClass
types that will be registered with SDG'sMappingPdxSerializer
in order to de/serialize the specifiedClass
types as PDX.
-
-
Method Details
-
with
Factory methods used to construct a new instance ofMappingPdxSerializerIncludedTypesRegistrar
initialized with given, required array ofClass
types that will be registered with SDG'sMappingPdxSerializer
in order to de/serialize the specifiedClass
types as PDX.- Parameters:
types
- array ofClass
types 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 configuredClass
types with SDG'sMappingPdxSerializer
providing the bean to post process after initialization is aGemFireCache
instance and SDG'sMappingPdxSerializer
was configured as the cache'sPdxSerializer
used to de/serialize objects of the specifiedClass
types.- Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Parameters:
bean
-bean
to evaluate.beanName
-String
specifying the name of the bean in the Spring container.- Returns:
- the given
Object
bean. - Throws:
org.springframework.beans.BeansException
- if post processing of the bean fails.
-