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

com.fluxtion.compiler.generation.serialiser.FieldToSourceSerializer Maven / Gradle / Ivy

There is a newer version: 9.3.47
Show newest version
package com.fluxtion.compiler.generation.serialiser;

import java.util.ServiceLoader;

/**
 * Loads a FieldToSourceSerializer using the {@link ServiceLoader} support provided
 * by Java platform. New factories can be added to Fluxtion using the extension
 * mechanism described in {@link ServiceLoader} documentation.
 */
public interface FieldToSourceSerializer {

    int DEFAULT_PRIORITY = 500;

    boolean typeSupported(Class type);

    String mapToSource(FieldContext fieldContext);

    default String language() {
        return "java";
    }

    default int priority() {
        return DEFAULT_PRIORITY;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy