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 insidesrc/main/resources/META-INF/services/org.kie.efesto.compilationmanager.api.service.KieCompilerServicefile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanManageResource(EfestoResource toProcess)java.lang.StringgetModelType()Return the model type that the CompilerService handlesjava.util.List<E>processResource(EfestoResource toProcess, U context)Produce oneEfrom the givenT
-
-
-
Method Detail
-
canManageResource
boolean canManageResource(EfestoResource toProcess)
-
processResource
java.util.List<E> processResource(EfestoResource toProcess, U context)
Produce oneEfrom the givenTImplementation 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
java.lang.String getModelType()
Return the model type that the CompilerService handles- Returns:
- model type
-
-