private void doIntrospection ( JsonSerializer serializer , Type type ) { if ( serializer == null ) { return ; } if ( EnumSerializer . class . isAssignableFrom ( serializer . getClass ( ) ) ) { introspectSerializer ( ( EnumSerializer ) serializer , ( CustomType ) type ) ; } else if ( BeanSerializerBase . class . isAssignableFrom ( serializer . getClass ( ) ) ) { introspectSerializer ( ( BeanSerializerBase ) serializer , ( CustomType ) type ) ; } else if ( StdScalarSerializer . class . isAssignableFrom ( serializer . getClass ( ) ) ) { introspectSerializer ( ( StdScalarSerializer ) serializer , ( CustomType ) type ) ; } else if ( AsArraySerializerBase . class . isAssignableFrom ( serializer . getClass ( ) ) ) { introspectSerializer ( ( AsArraySerializerBase ) serializer , ( CollectionTypeJrapidoc ) type ) ; } else if ( MapSerializer . class . isAssignableFrom ( serializer . getClass ( ) ) ) { introspectSerializer ( ( MapSerializer ) serializer , ( MapTypeJrapidoc ) type ) ; } }
Do redirection from general Jackson serializer to the concrete one