public class MappingPdxSerializerIncludedTypesRegistrar
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor used to register additional types handled by
the SDG MappingPdxSerializer.Class,
Predicate,
GemFireCache,
PdxSerializer,
BeanPostProcessor,
MappingPdxSerializer| Constructor and Description |
|---|
MappingPdxSerializerIncludedTypesRegistrar(java.lang.Class<?>[] types)
Constructs a new instance of
MappingPdxSerializerIncludedTypesRegistrar initialized with given,
required array of Class types that will be registered with SDG's MappingPdxSerializer
in order to de/serialize the specified Class types as PDX. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<java.util.function.Predicate<java.lang.Class<?>>> |
getCompositeIncludeTypeFilter()
Composes an
Optional Predicate consisting of the configured array Class types
used to match possible types de/serialized as PDX using SDG's MappingPdxSerializer. |
protected java.lang.Class<?>[] |
getTypes()
Gets the array of
Class types to register with SDG's MappingPdxSerializer in order to
de/serialize the Class types as PDX. |
protected java.util.function.Predicate<java.lang.Class<?>> |
newIncludeTypeFilter(java.lang.Class<?> type)
Null-safe method used to construct a new
type include filter
that can be registered with SDG's MappingPdxSerializer. |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
Registers the configured
Class types with SDG's MappingPdxSerializer providing the bean
to post process after initialization is a GemFireCache instance and SDG's MappingPdxSerializer
was configured as the cache's PdxSerializer used to de/serialize objects of the specified Class
types. |
static MappingPdxSerializerIncludedTypesRegistrar |
with(java.lang.Class<?>... types)
Factory methods used to construct a new instance of
MappingPdxSerializerIncludedTypesRegistrar
initialized with given, required array of Class types that will be registered with
SDG's MappingPdxSerializer in order to de/serialize the specified Class types as PDX. |
public MappingPdxSerializerIncludedTypesRegistrar(@NonNull
java.lang.Class<?>[] types)
MappingPdxSerializerIncludedTypesRegistrar initialized with given,
required array of Class types that will be registered with SDG's MappingPdxSerializer
in order to de/serialize the specified Class types as PDX.types - array of Class types to be de/serialized as PDX using SDG's MappingPdxSerializer;
must not be null.Class@NonNull public static MappingPdxSerializerIncludedTypesRegistrar with(java.lang.Class<?>... types)
MappingPdxSerializerIncludedTypesRegistrar
initialized with given, required array of Class types that will be registered with
SDG's MappingPdxSerializer in order to de/serialize the specified Class types as PDX.types - array of Class types to be de/serialized as PDX using SDG's MappingPdxSerializer;
must not be null.MappingPdxSerializerIncludedTypesRegistrarMappingPdxSerializerIncludedTypesRegistrar(Class[])@NonNull protected java.lang.Class<?>[] getTypes()
Class types to register with SDG's MappingPdxSerializer in order to
de/serialize the Class types as PDX.Class types to be registered with SDG's MappingPdxSerializer
in order to de/serialize the Class types as PDX; never null.Classprotected java.util.Optional<java.util.function.Predicate<java.lang.Class<?>>> getCompositeIncludeTypeFilter()
Optional Predicate consisting of the configured array Class types
used to match possible types de/serialized as PDX using SDG's MappingPdxSerializer.Optional composite Predicate consisting of the configured
array of Class types.Predicate,
Optional,
getTypes()@Nullable
protected java.util.function.Predicate<java.lang.Class<?>> newIncludeTypeFilter(@Nullable
java.lang.Class<?> type)
type include filter
that can be registered with SDG's MappingPdxSerializer.
The Predicate matches tested types that are
assignable from the given type.type - Class used as the basis for matching in the Predicate.Predicate from the given type;
returns null if the given type is null.Predicate,
Class@Nullable
public java.lang.Object postProcessAfterInitialization(@Nullable
java.lang.Object bean,
@Nullable
java.lang.String beanName)
throws org.springframework.beans.BeansException
Class types with SDG's MappingPdxSerializer providing the bean
to post process after initialization is a GemFireCache instance and SDG's MappingPdxSerializer
was configured as the cache's PdxSerializer used to de/serialize objects of the specified Class
types.postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessorbean - bean to evaluate.beanName - String specifying the name of the bean in the Spring container.Object bean.org.springframework.beans.BeansException - if post processing of the bean fails.