Class BeanCondition.PropertyBeanCondition

    • Method Detail

      • withDefaultValue

        @CanIgnoreReturnValue
        public BeanCondition withDefaultValue​(java.lang.String value)
        Description copied from interface: BeanCondition
        With default value.
        Specified by:
        withDefaultValue in interface BeanCondition
        Parameters:
        value - the value
        Returns:
        the bean condition
      • havingValue

        @CanIgnoreReturnValue
        public BeanCondition havingValue​(java.io.Serializable value)
        Description copied from interface: BeanCondition
        Is the property value set to this value?
        Specified by:
        havingValue in interface BeanCondition
        Parameters:
        value - the value
        Returns:
        the bean condition
      • exists

        @CanIgnoreReturnValue
        public BeanCondition exists()
        Description copied from interface: BeanCondition
        Check of the value is a valid resource and exists.
        Specified by:
        exists in interface BeanCondition
        Returns:
        the bean condition
      • isUrl

        @CanIgnoreReturnValue
        public BeanCondition isUrl()
        Description copied from interface: BeanCondition
        Is value defined as a valid URL?
        Specified by:
        isUrl in interface BeanCondition
        Returns:
        the bean condition
      • and

        @CanIgnoreReturnValue
        public BeanCondition and​(java.lang.String name)
        Description copied from interface: BeanCondition
        And another condition into the current chan.
        Specified by:
        and in interface BeanCondition
        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: BeanCondition
        To supplier supplier.
        Specified by:
        given in interface BeanCondition
        Parameters:
        propertyResolver - the application context
        Returns:
        the supplier