Class AnnotatedMethodRouteBuilder
java.lang.Object
io.micronaut.web.router.DefaultRouteBuilder
io.micronaut.web.router.AnnotatedMethodRouteBuilder
- All Implemented Interfaces:
BeanDefinitionProcessor<Controller>, RouteBuilder
@Singleton
public class AnnotatedMethodRouteBuilder
extends DefaultRouteBuilder
implements BeanDefinitionProcessor<Controller>
Responsible for building
Route instances for the annotations found in the io.micronaut.http.annotation
package.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface RouteBuilder
RouteBuilder.UriNamingStrategy -
Field Summary
Fields inherited from class DefaultRouteBuilder
CAMEL_CASE_NAMING_STRATEGY, conversionService, defaultCharset, executionHandleLocator, LOG, uriNamingStrategyFields inherited from interface RouteBuilder
ID -
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedMethodRouteBuilder(ExecutionHandleLocator executionHandleLocator, RouteBuilder.UriNamingStrategy uriNamingStrategy, ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(BeanDefinition<?> beanDefinition, BeanContext beanContext) The process method will be called for every bean annotated with the given annotation type.Methods inherited from class DefaultRouteBuilder
addFilter, buildBeanRoute, buildRoute, buildRoute, buildRoute, DELETE, DELETE, DELETE, error, error, GET, GET, GET, getErrorRoutes, getExposedPorts, 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, TRACEMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RouteBuilder
DELETE, 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, TRACE
-
Constructor Details
-
AnnotatedMethodRouteBuilder
public AnnotatedMethodRouteBuilder(ExecutionHandleLocator executionHandleLocator, RouteBuilder.UriNamingStrategy uriNamingStrategy, ConversionService conversionService) - Parameters:
executionHandleLocator- The execution handler locatoruriNamingStrategy- The URI naming strategyconversionService- The conversion service
-
-
Method Details
-
process
Description copied from interface:BeanDefinitionProcessorThe process method will be called for every bean annotated with the given annotation type.- Specified by:
processin interfaceBeanDefinitionProcessor<Controller>- Parameters:
beanDefinition- The bean definitionbeanContext- The bean context
-