Interface PropertyRequiresPlugin


@NonNullApi public interface PropertyRequiresPlugin
Plugin interface which contains the application properties used for wiring. Used with RequiresProperty and Profile.

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.
    default boolean
    missing(String property)
    Return true if the property is not defined.
    default 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

      default 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

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