@Retention(value=RUNTIME) @Target(value=METHOD) public @interface ConditionalOnEnabledEndpoint
Conditional
that checks whether or not an endpoint is enabled. Matches if the
value of the endpoints.<name>.enabled
property is true
. Does not match
if the property's value or enabledByDefault
is false
. Otherwise,
matches if the value of the endpoints.enabled
property is true
or if
the property is not configured.Modifier and Type | Required Element and Description |
---|---|
String |
value
The name of the endpoint.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
enabledByDefault
Returns whether or not the endpoint is enabled by default.
|
public abstract String value
public abstract boolean enabledByDefault
true
if the endpoint is enabled by default, otherwise false
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.