Package com.fluxtion.generator.compiler
Class ClassProcessorDispatcher
java.lang.Object
com.fluxtion.generator.compiler.ClassProcessorDispatcher
- All Implemented Interfaces:
java.util.function.BiConsumer<java.net.URL,java.io.File>
public class ClassProcessorDispatcher
extends java.lang.Object
implements java.util.function.BiConsumer<java.net.URL,java.io.File>
A utility function that dispatches a
URL
for ClassProcessor
to process. Uses {@link ServiceLoader>} facility to load user created
processors at run-time. The loaded ClassProcessor can examine and generate
artifacts as necessary. User- Author:
- V12 Technology Ltd.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClassProcessorDispatcher.DirectoryNames
-
Constructor Summary
Constructors Constructor Description ClassProcessorDispatcher()
-
Method Summary
Modifier and Type Method Description void
accept(java.net.URL url, java.io.File baseDir)
static ClassProcessorDispatcher.DirectoryNames
standardParamsHelper(io.github.classgraph.AnnotationParameterValueList params, java.io.File rootDir, java.io.File generatedDir, java.io.File resourceDir)
-
Constructor Details
-
ClassProcessorDispatcher
public ClassProcessorDispatcher()
-
-
Method Details
-
accept
public void accept(java.net.URL url, java.io.File baseDir)- Specified by:
accept
in interfacejava.util.function.BiConsumer<java.net.URL,java.io.File>
-
standardParamsHelper
public static ClassProcessorDispatcher.DirectoryNames standardParamsHelper(io.github.classgraph.AnnotationParameterValueList params, java.io.File rootDir, java.io.File generatedDir, java.io.File resourceDir) throws java.io.IOException- Throws:
java.io.IOException
-