@ -16,7 +16,6 @@
package org.springframework.boot.actuate.autoconfigure.endpoint ;
package org.springframework.boot.actuate.autoconfigure.endpoint ;
import java.lang.annotation.Documented ;
import java.lang.annotation.Documented ;
import java.lang.annotation.ElementType ;
import java.lang.annotation.ElementType ;
import java.lang.annotation.Retention ;
import java.lang.annotation.Retention ;
@ -29,19 +28,19 @@ import org.springframework.context.annotation.Conditional;
/ * *
/ * *
* { @link Conditional } that checks whether an endpoint is enabled or not . Matches
* { @link Conditional } that checks whether an endpoint is enabled or not . Matches
* according to the { @ link Endpoint # enabledByDefault ( ) enabledByDefault flag } and the
* according to the { @ code enabledByDefault } flag { @code types } flag that the
* specific { @link Endpoint # types ( ) tech } that the endpoint may be restricted to .
* { @link Endpoint } may be restricted to .
* < p >
* < p >
* If no specific { @code endpoints . < id > . * } or { @code endpoints . all . * } properties are
* If no specific { @code endpoints . < id > . * } or { @code endpoints . all . * } properties are
* defined , the condition matches the { @code enabledByDefault } value regardless of the
* defined , the condition matches the { @code enabledByDefault } value regardless of the
* specific { @link EndpointType } , if any . If any property are set , they are evaluated
* specific { @link EndpointType } , if any . If any property are set , they are evaluated with
* with a sensible order of precedence .
* a sensible order of precedence .
* < p >
* < p >
* For instance if { @code endpoints . all . enabled } is { @code false } but
* For instance if { @code endpoints . all . enabled } is { @code false } but
* { @code endpoints . < id > . enabled } is { @code true } , the condition will match .
* { @code endpoints . < id > . enabled } is { @code true } , the condition will match .
* < p >
* < p >
* This condition must be placed on a { @code @Bean } method producing an endpoint as its
* This condition must be placed on a { @code @Bean } method producing an endpoint as its id
* id and other attributes are inferred from the { @link Endpoint } annotation set on the
* and other attributes are inferred from the { @link Endpoint } annotation set on the
* return type of the factory method . Consider the following valid example :
* return type of the factory method . Consider the following valid example :
*
*
* < pre class = "code" >
* < pre class = "code" >