Interface KieCompilerService<E extends EfestoCompilationOutput,​U extends EfestoCompilationContext>


  • public interface KieCompilerService<E extends EfestoCompilationOutput,​U extends EfestoCompilationContext>
    The compilation-related interface to be implemented by engine-plugin. It will be looked for with SPI, so each engine should declare that implementation inside src/main/resources/META-INF/services/org.kie.efesto.compilationmanager.api.service.KieCompilerService file
    • Method Detail

      • canManageResource

        boolean canManageResource​(EfestoResource toProcess)
      • processResource

        List<E> processResource​(EfestoResource toProcess,
                                U context)
        Produce one E from the given T

        Implementation are also required to generate a "mapping" class, i.e. a class specific for the given model responsible to list all the other generated ones; engine-specific runtimes will look for such class to know if it can manage given resource

        Parameters:
        toProcess -
        context -
        Returns:
      • getModelType

        String getModelType()
        Return the model type that the CompilerService handles
        Returns:
        model type