- All Superinterfaces:
InjectExtension,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 TypeMethodDescriptionbooleanReturn true if the property is defined.booleanReturn true if the property is equal to the given value.Return a configuration value that might not exist.default booleanReturn true if the property is not defined.default booleannotEqualTo(String property, String value) Return true if the property is not defined or not equal to the given value.
-
Method Details
-
get
Return a configuration value that might not exist.- Specified by:
getin interfacePropertyRequiresPlugin
-
contains
Return true if the property is defined.- Specified by:
containsin interfacePropertyRequiresPlugin
-
missing
Return true if the property is not defined.- Specified by:
missingin interfacePropertyRequiresPlugin
-
equalTo
Return true if the property is equal to the given value.- Specified by:
equalToin interfacePropertyRequiresPlugin
-
notEqualTo
Return true if the property is not defined or not equal to the given value.- Specified by:
notEqualToin interfacePropertyRequiresPlugin
-