Package io.micronaut.management.endpoint
Class EndpointSensitivityProcessor
java.lang.Object
io.micronaut.management.endpoint.EndpointSensitivityProcessor
- All Implemented Interfaces:
BeanDefinitionProcessor<Endpoint>
@Singleton
public class EndpointSensitivityProcessor
extends Object
implements BeanDefinitionProcessor<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, BeanContext beanContext) The process method will be called for every bean annotated with the given annotation type.
-
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:BeanDefinitionProcessorThe process method will be called for every bean annotated with the given annotation type.- Specified by:
processin interfaceBeanDefinitionProcessor<Endpoint>- Parameters:
beanDefinition- The bean definitionbeanContext- The bean context
-