@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Inherited public @interface Sensitive
{@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.Modifier and Type | Optional Element and Description |
---|---|
boolean |
defaultValue
Only to be used in conjunction with
property() . |
String |
property |
boolean |
value |
public abstract boolean value
public abstract String property
public abstract boolean defaultValue
property()
.