Package org.apereo.cas.util.spring.beans
Interface BeanCondition
-
- All Known Implementing Classes:
BeanCondition.PropertyBeanCondition
public interface BeanConditionThis isBeanCondition.- Since:
- 6.5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBeanCondition.Conditionstatic classBeanCondition.PropertyBeanCondition
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static BeanConditionalwaysTrue()Always true bean condition.BeanConditionand(java.lang.String name)And another condition into the current chan.BeanConditionevenIfMissing()Match if missing bean condition.BeanConditionexists()Check of the value is a valid resource and exists.java.util.function.Supplier<java.lang.Boolean>given(org.springframework.core.env.PropertyResolver applicationContext)To supplier supplier.BeanConditionhavingValue(java.io.Serializable value)Is the property value set to this value?default BeanConditionisFalse()Is false bean condition.default BeanConditionisTrue()Is property value set to true.BeanConditionisUrl()Is value defined as a valid URL?static BeanConditionon(java.lang.String name)On bean condition.BeanConditionwithDefaultValue(java.lang.String value)With default value.
-
-
-
Method Detail
-
alwaysTrue
static BeanCondition alwaysTrue()
Always true bean condition.- Returns:
- the bean condition
-
on
static BeanCondition on(java.lang.String name)
On bean condition.- Parameters:
name- the name- Returns:
- the bean condition
-
evenIfMissing
BeanCondition evenIfMissing()
Match if missing bean condition.- Returns:
- the bean condition
-
withDefaultValue
BeanCondition withDefaultValue(java.lang.String value)
With default value.- Parameters:
value- the value- Returns:
- the bean condition
-
havingValue
BeanCondition havingValue(java.io.Serializable value)
Is the property value set to this value?- Parameters:
value- the value- Returns:
- the bean condition
-
exists
BeanCondition exists()
Check of the value is a valid resource and exists.- Returns:
- the bean condition
-
isTrue
default BeanCondition isTrue()
Is property value set to true.- Returns:
- the bean condition
-
isFalse
default BeanCondition isFalse()
Is false bean condition.- Returns:
- the bean condition
-
isUrl
BeanCondition isUrl()
Is value defined as a valid URL?- Returns:
- the bean condition
-
and
BeanCondition and(java.lang.String name)
And another condition into the current chan.- Parameters:
name- the name- Returns:
- the bean condition
-
given
java.util.function.Supplier<java.lang.Boolean> given(org.springframework.core.env.PropertyResolver applicationContext)
To supplier supplier.- Parameters:
applicationContext- the application context- Returns:
- the supplier
-
-