Class RouteProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.google.auto.common.BasicAnnotationProcessor
-
- org.jboss.elemento.router.processor.RouteProcessor
-
- All Implemented Interfaces:
Processor
@AutoService(javax.annotation.processing.Processor.class) @SupportedSourceVersion(RELEASE_11) @SupportedAnnotationTypes("org.jboss.elemento.router.Route") @SupportedOptions("routes.package") public class RouteProcessor extends com.google.auto.common.BasicAnnotationProcessor
This class is a processor that generates a Routes implementation based on the Route annotations in the codebase. It creates a RoutesImpl class that contains a map of Place to Suppliers of Page objects. The map is populated with entries for each Route annotation found, where the key is a Place object created from the Route value, and the value is a Supplier that creates a new instance of the corresponding Page class.
-
-
Constructor Summary
Constructors Constructor Description RouteProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceVersiongetSupportedSourceVersion()-
Methods inherited from class com.google.auto.common.BasicAnnotationProcessor
getSupportedAnnotationTypes, init, process
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions
-
-
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
-