@Documented
@Retention(RUNTIME)
@Target(METHOD)
@Inherited
public @interface Sensitive
Annotation that can be applied to endpoint methods to control sensitivity at the method level.
For example:
{@literal @}Endpoint(id = "loggers", prefix = "myapp")
public class LoggersEndpoint {
{@literal @}Write
{@literal @}Sensitive(property = "write-sensitive", defaultValue = true)
public void setLogLevel@Selector String name) {
}
}
The configuration key myapp.loggers.write-sensitive will determine the sensitivity
of the method, defaulting to true if not present.
- Since:
- 2.0.0