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.Loader","org.jboss.elemento.router.Route"})
@SupportedOptions({"places.package","places.class"})
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.auto.common.BasicAnnotationProcessor
com.google.auto.common.BasicAnnotationProcessor.ProcessingStep, com.google.auto.common.BasicAnnotationProcessor.Step -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.auto.common.BasicAnnotationProcessor
getSupportedAnnotationTypes, init, processMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions
-
Constructor Details
-
RouteProcessor
public RouteProcessor()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-