Interface PropertyRequiresPlugin

All Superinterfaces:
InjectExtension
All Known Subinterfaces:
ConfigPropertyPlugin

@NullMarked @Deprecated(forRemoval=true) public interface PropertyRequiresPlugin extends InjectExtension
Deprecated, for removal: This API element is subject to removal in a future version.
use ConfigPropertyPlugin Instead
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)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return true if the property is defined.
    boolean
    equalTo(String property, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return true if the property is equal to the given value.
    get(String property)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return a configuration value that might not exist.
    default boolean
    missing(String property)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return true if the property is not defined.
    default boolean
    notEqualTo(String property, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return true if the property is not defined or not equal to the given value.
  • Method Details

    • get

      Optional<String> get(String property)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a configuration value that might not exist.
    • contains

      boolean contains(String property)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return true if the property is defined.
    • missing

      default boolean missing(String property)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return true if the property is not defined.
    • equalTo

      boolean equalTo(String property, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return true if the property is equal to the given value.
    • notEqualTo

      default boolean notEqualTo(String property, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return true if the property is not defined or not equal to the given value.