All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shade.com.alibaba.fastjson2.modules.ObjectWriterModule Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.alibaba.fastjson2.modules;

import com.alibaba.fastjson2.writer.FieldWriter;
import com.alibaba.fastjson2.writer.ObjectWriter;
import com.alibaba.fastjson2.writer.ObjectWriterCreator;
import com.alibaba.fastjson2.writer.ObjectWriterProvider;

import java.lang.reflect.Type;
import java.util.List;

public interface ObjectWriterModule {
    default void init(ObjectWriterProvider provider) {
    }

    default ObjectWriter getObjectWriter(Type objectType, Class objectClass) {
        return null;
    }

    default boolean createFieldWriters(
            ObjectWriterCreator creator,
            Class objectType,
            List fieldWriters) {
        return false;
    }

    default ObjectWriterAnnotationProcessor getAnnotationProcessor() {
        return null;
    }

    default ObjectWriterProvider getProvider() {
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy