public class ClassLoaderFieldSerializerFilter extends Object implements FieldSerializerFilter
ClassLoader to check for fields to be included or not in the serialization.| Constructor and Description |
|---|
ClassLoaderFieldSerializerFilter(ClassLoader targetClassLoader)
Creates an instance of the filter class loader field serializer with the target class loader to collect the class fields.
|
public ClassLoaderFieldSerializerFilter(ClassLoader targetClassLoader)
targetClassLoader - ClassLoader to collect the class fields to check if they should be included in serialization.public boolean shouldInclude(Class type, Field field) throws ClassNotFoundException
shouldInclude in interface FieldSerializerFiltertype - the Class type to check for the field in the destination where the data will be deserialized.field - Field to check if should o should not be write/read in the serialization.true if it has to be included in the serialization.ClassNotFoundException - if the class is not present in the target class loader.Copyright © 2022 MuleSoft, Inc.. All rights reserved.