@Singleton public class DeleteEndpointRouteBuilder extends DefaultRouteBuilder
RouteBuilder.UriNamingStrategy
CAMEL_CASE_NAMING_STRATEGY, conversionService, defaultCharset, executionHandleLocator, LOG, uriNamingStrategy
ID
Constructor and Description |
---|
DeleteEndpointRouteBuilder(ApplicationContext beanContext,
RouteBuilder.UriNamingStrategy uriNamingStrategy,
ConversionService<?> conversionService,
EndpointDefaultConfiguration endpointDefaultConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected UriTemplate |
buildUriTemplate(ExecutableMethod<?,?> method,
String id) |
protected Class<? extends Annotation> |
getSupportedAnnotation() |
protected boolean |
isPathParameter(Argument argument) |
boolean |
isRunning() |
void |
process(BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
The process method will be called for every
ExecutableMethod that is annotated with the type parameter A. |
protected void |
registerRoute(ExecutableMethod<?,?> method,
String id,
Integer port)
Register a route.
|
protected Optional<String> |
resolveActiveEndPointId(Class<?> declaringType) |
io.micronaut.management.endpoint.processors.AbstractEndpointRouteBuilder |
start()
Starts the lifecyle component.
|
io.micronaut.management.endpoint.processors.AbstractEndpointRouteBuilder |
stop()
Clears endpoint ids information.
|
addFilter, addFilter, buildBeanRoute, 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, TRACE
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public DeleteEndpointRouteBuilder(ApplicationContext beanContext, RouteBuilder.UriNamingStrategy uriNamingStrategy, ConversionService<?> conversionService, EndpointDefaultConfiguration endpointDefaultConfiguration)
beanContext
- The application contecturiNamingStrategy
- The URI naming strategyconversionService
- The conversion serviceendpointDefaultConfiguration
- Endpoints default Configurationprotected Class<? extends Annotation> getSupportedAnnotation()
protected void registerRoute(ExecutableMethod<?,?> method, String id, Integer port)
method
- The ExecutableMethod
id
- The route idport
- The port@NonNull public io.micronaut.management.endpoint.processors.AbstractEndpointRouteBuilder start()
LifeCycle
@NonNull public io.micronaut.management.endpoint.processors.AbstractEndpointRouteBuilder stop()
public boolean isRunning()
public void process(BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
ExecutableMethodProcessor
ExecutableMethod
that is annotated with the type parameter A.process
in interface AnnotationProcessor<Endpoint,ExecutableMethod<?,?>>
process
in interface ExecutableMethodProcessor<Endpoint>
beanDefinition
- The bean definition to processmethod
- The executable methodprotected Optional<String> resolveActiveEndPointId(Class<?> declaringType)
declaringType
- The typeprotected UriTemplate buildUriTemplate(ExecutableMethod<?,?> method, String id)
method
- The ExecutableMethod
id
- The route idUriTemplate