Package io.micronaut.management.endpoint
Class EndpointSensitivityProcessor
java.lang.Object
io.micronaut.management.endpoint.EndpointSensitivityProcessor
- All Implemented Interfaces:
AnnotationProcessor<Endpoint,,ExecutableMethod<?, ?>> ExecutableMethodProcessor<Endpoint>
@Singleton
public class EndpointSensitivityProcessor
extends Object
implements ExecutableMethodProcessor<Endpoint>
Finds any sensitive endpoints.
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointSensitivityProcessor(List<EndpointConfiguration> endpointConfigurations, EndpointDefaultConfiguration defaultConfiguration, PropertyResolver propertyResolver) Constructs with the existing and default endpoint configurations used to determine if a given endpoint is sensitive. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(BeanDefinition<?> beanDefinition, ExecutableMethod<?, ?> method) The process method will be called for everyExecutableMethodthat is annotated with the type parameter A.
-
Constructor Details
-
EndpointSensitivityProcessor
@Inject public EndpointSensitivityProcessor(List<EndpointConfiguration> endpointConfigurations, EndpointDefaultConfiguration defaultConfiguration, PropertyResolver propertyResolver) Constructs with the existing and default endpoint configurations used to determine if a given endpoint is sensitive.- Parameters:
endpointConfigurations- The endpoint configurationsdefaultConfiguration- The default endpoint configurationpropertyResolver- The property resolver
-
-
Method Details
-
getEndpointMethods
- Returns:
- Returns Map with the key being a method which identifies an
Endpointand a boolean value being the sensitive configuration for the endpoint.
-
process
Description copied from interface:ExecutableMethodProcessorThe process method will be called for everyExecutableMethodthat is annotated with the type parameter A.- Specified by:
processin interfaceAnnotationProcessor<Endpoint,ExecutableMethod<?, ?>> - Specified by:
processin interfaceExecutableMethodProcessor<Endpoint>- Parameters:
beanDefinition- The bean definition to processmethod- The executable method
-