Package org.apereo.cas.util.spring.beans
Class BeanCondition.PropertyBeanCondition
- java.lang.Object
-
- org.apereo.cas.util.spring.beans.BeanCondition.PropertyBeanCondition
-
- All Implemented Interfaces:
BeanCondition
- Enclosing interface:
- BeanCondition
public static class BeanCondition.PropertyBeanCondition extends java.lang.Object implements BeanCondition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apereo.cas.util.spring.beans.BeanCondition
BeanCondition.Condition, BeanCondition.PropertyBeanCondition
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 propertyResolver)To supplier supplier.BeanConditionhavingValue(java.io.Serializable value)Is the property value set to this value?BeanConditionisUrl()Is value defined as a valid URL?BeanConditionwithDefaultValue(java.lang.String value)With default value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.util.spring.beans.BeanCondition
isFalse, isTrue
-
-
-
-
Method Detail
-
evenIfMissing
@CanIgnoreReturnValue public BeanCondition evenIfMissing()
Description copied from interface:BeanConditionMatch if missing bean condition.- Specified by:
evenIfMissingin interfaceBeanCondition- Returns:
- the bean condition
-
withDefaultValue
@CanIgnoreReturnValue public BeanCondition withDefaultValue(java.lang.String value)
Description copied from interface:BeanConditionWith default value.- Specified by:
withDefaultValuein interfaceBeanCondition- Parameters:
value- the value- Returns:
- the bean condition
-
havingValue
@CanIgnoreReturnValue public BeanCondition havingValue(java.io.Serializable value)
Description copied from interface:BeanConditionIs the property value set to this value?- Specified by:
havingValuein interfaceBeanCondition- Parameters:
value- the value- Returns:
- the bean condition
-
exists
@CanIgnoreReturnValue public BeanCondition exists()
Description copied from interface:BeanConditionCheck of the value is a valid resource and exists.- Specified by:
existsin interfaceBeanCondition- Returns:
- the bean condition
-
isUrl
@CanIgnoreReturnValue public BeanCondition isUrl()
Description copied from interface:BeanConditionIs value defined as a valid URL?- Specified by:
isUrlin interfaceBeanCondition- Returns:
- the bean condition
-
and
@CanIgnoreReturnValue public BeanCondition and(java.lang.String name)
Description copied from interface:BeanConditionAnd another condition into the current chan.- Specified by:
andin interfaceBeanCondition- Parameters:
name- the name- Returns:
- the bean condition
-
given
public java.util.function.Supplier<java.lang.Boolean> given(org.springframework.core.env.PropertyResolver propertyResolver)
Description copied from interface:BeanConditionTo supplier supplier.- Specified by:
givenin interfaceBeanCondition- Parameters:
propertyResolver- the application context- Returns:
- the supplier
-
-