Annotation Type When
-
@Repeatable(Whens.class) @Retention(RUNTIME) @Target(FIELD) public @interface When
This annotation determines whether a property is visible and serializable. A property might only be visible and serializable when another property has a given value, for example: HTTP Security configuration should be visible and serializable only when the chosen HTTP protocol is 'HTTPS'.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description StringpropertyNameThe related property name on which we want to verify if a given value is currently assigned to it.StringpropertyValueThe target value we want the condition to be true for.
-
-
-
Field Detail
-
NULL
static final String NULL
-
-
-
BLANK
static final String BLANK
-
-
-
NOT_BLANK
static final String NOT_BLANK
-
-
-
SCRIPT
static final String SCRIPT
-
-
-
NOT_SCRIPT
static final String NOT_SCRIPT
-
-
Element Detail
-
propertyName
String propertyName
The related property name on which we want to verify if a given value is currently assigned to it.
-
-
-
propertyValue
String propertyValue
The target value we want the condition to be true for.
-
-