@Singleton public class AnnotatedMethodRouteBuilder extends DefaultRouteBuilder implements ExecutableMethodProcessor<Controller>
Route instances for the annotations found in the io.micronaut.http.annotation
package.RouteBuilder.UriNamingStrategyCAMEL_CASE_NAMING_STRATEGY, conversionService, defaultCharset, executionHandleLocator, HYPHENATED_NAMING_STRATEGY, LOG, uriNamingStrategyID| Constructor and Description |
|---|
AnnotatedMethodRouteBuilder(ExecutionHandleLocator executionHandleLocator,
RouteBuilder.UriNamingStrategy uriNamingStrategy,
ConversionService<?> conversionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
The process method will be called for every
ExecutableMethod that is annotated with the type parameter A. |
addFilter, buildRoute, buildRoute, DELETE, DELETE, DELETE, error, error, GET, GET, GET, getErrorRoutes, getFilterRoutes, getStatusRoutes, getUriNamingStrategy, getUriRoutes, HEAD, HEAD, HEAD, OPTIONS, OPTIONS, OPTIONS, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, resources, single, status, status, TRACE, TRACE, TRACEclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitDELETE, DELETE, DELETE, DELETE, DELETE, DELETE, error, error, error, error, GET, GET, GET, GET, GET, GET, HEAD, HEAD, HEAD, HEAD, HEAD, HEAD, OPTIONS, OPTIONS, OPTIONS, OPTIONS, OPTIONS, OPTIONS, PATCH, PATCH, PATCH, PATCH, PATCH, PATCH, POST, POST, POST, POST, POST, POST, PUT, PUT, PUT, PUT, PUT, PUT, resources, single, status, TRACE, TRACE, TRACE, TRACE, TRACE, TRACEpublic AnnotatedMethodRouteBuilder(ExecutionHandleLocator executionHandleLocator, RouteBuilder.UriNamingStrategy uriNamingStrategy, ConversionService<?> conversionService)
executionHandleLocator - The execution handler locatoruriNamingStrategy - The URI naming strategyconversionService - The conversion servicepublic void process(BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
ExecutableMethodProcessorExecutableMethod that is annotated with the type parameter A.process in interface AnnotationProcessor<Controller,ExecutableMethod<?,?>>process in interface ExecutableMethodProcessor<Controller>beanDefinition - The bean definition to processmethod - The executable method