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.