Interface ClassProcessor


public interface ClassProcessor
A ClassProcessor service can inspect and process application classes after they are compiled. The callback process(java.net.URL) points to the compiled application classes. No external libraries are on the process URL, solely the output of compiling application source files.

This gives the opportunity for ClassProcessor's to scan the path and generate artifacts without risk of confusing library and application classes. For example a service may scan for a specific annotation and generate a tailored solution based on the meta-data discovered during scanning.

Registering ClassProcessor

Fluxtion employs the ServiceLoader pattern to register user implemented NodeFactories. Please read the java documentation describing the meta-data a factory implementor must provide to register a factory using the ServiceLoader pattern.
Author:
V12 Technology Ltd.
  • Method Summary

    Modifier and Type Method Description
    default void outputDirectories​(java.io.File rootDir, java.io.File output, java.io.File resourceDir)
    Directories for the current generation context
    void process​(java.net.URL classPath)
    The URL of compiled application classes
  • Method Details

    • outputDirectories

      default void outputDirectories​(java.io.File rootDir, java.io.File output, java.io.File resourceDir)
      Directories for the current generation context
      Parameters:
      rootDir - - root directory of the project
      output - - directory for generated source outputs
      resourceDir - - directory for generated resource outputs
    • process

      void process​(java.net.URL classPath)
      The URL of compiled application classes
      Parameters:
      classPath - application classes location