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 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 configurations
      defaultConfiguration - The default endpoint configuration
      propertyResolver - The property resolver
  • Method Details

    • getEndpointMethods

      public Map<ExecutableMethod,Boolean> 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

      public void process(BeanDefinition<?> beanDefinition, BeanContext beanContext)
      Description copied from interface: BeanDefinitionProcessor
      The process method will be called for every bean annotated with the given annotation type.
      Specified by:
      process in interface BeanDefinitionProcessor<Endpoint>
      Parameters:
      beanDefinition - The bean definition
      beanContext - The bean context