org.springframework.boot.actuate.endpoint.annotation

Annotation Type FilteredEndpoint



  • @Target(value=TYPE)
     @Retention(value=RUNTIME)
     @Documented
    public @interface FilteredEndpoint
    Annotation that can be used on an @Endpoint to implement implicit filtering. Often used as a meta-annotation on technology specific endpoint annotations, for example:
     @Endpoint
     @FilteredEndpoint(WebEndpointFilter.class)
     public @interface WebEndpoint {
    
         @AliasFor(annotation = Endpoint.class, attribute = "id")
         String id();
    
         @AliasFor(annotation = Endpoint.class, attribute = "enableByDefault")
         boolean enableByDefault() default true;
    
     } 
    Since:
    2.0.0
    Author:
    Phillip Webb
    See Also:
    DiscovererEndpointFilter
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      Class<? extends EndpointFilter<?>> value
      The filter class to use.
    • Element Detail

      • value

        public abstract Class<? extends EndpointFilter<?>> value
        The filter class to use.
        Returns:
        the filter class