Interface PropertyRequiresPlugin


public interface PropertyRequiresPlugin
Plugin interface used with RequiresProperty.

The plugin is loaded via ServiceLoader and defaults to an implementation that uses System.getProperty(String) and System.getenv(String).

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(String property)
    Return true if the property is defined.
    boolean
    equalTo(String property, String value)
    Return true if the property is equal to the given value.
    get(String property)
    Return a configuration value that might not exist.
    boolean
    missing(String property)
    Return true if the property is not defined.
    boolean
    notEqualTo(String property, String value)
    Return true if the property is not defined or not equal to the given value.
  • Method Details

    • get

      Optional<String> get(String property)
      Return a configuration value that might not exist.
    • contains

      boolean contains(String property)
      Return true if the property is defined.
    • missing

      boolean missing(String property)
      Return true if the property is not defined.
    • equalTo

      boolean equalTo(String property, String value)
      Return true if the property is equal to the given value.
    • notEqualTo

      boolean notEqualTo(String property, String value)
      Return true if the property is not defined or not equal to the given value.