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
ConstructorDescriptionEndpointSensitivityProcessor
(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 TypeMethodDescriptionvoid
process
(BeanDefinition<?> beanDefinition, ExecutableMethod<?, ?> method) The process method will be called for everyExecutableMethod
that 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
Endpoint
and a boolean value being the sensitive configuration for the endpoint.
-
process
Description copied from interface:ExecutableMethodProcessor
The process method will be called for everyExecutableMethod
that is annotated with the type parameter A.- Specified by:
process
in interfaceAnnotationProcessor<Endpoint,
ExecutableMethod<?, ?>> - Specified by:
process
in interfaceExecutableMethodProcessor<Endpoint>
- Parameters:
beanDefinition
- The bean definition to processmethod
- The executable method
-