Looks up an required key in the configuration.
Looks up an required key in the configuration.
The key to look up
The converted value for the expression.
1.0
ConstrettoConversionException
If a valid converter is not found for the target Type
ConstrettoExpressionException
If the key is not found
Looks up an optional key in the configuration.
Looks up an optional key in the configuration.
The key to look up
The converted value for the expression, or None if expression not found, or conversion error occured.
1.0
Gives a list over all the tags currently in use.
Gives a list over all the tags currently in use.
current tags
1.1
Provides all configuration key/value pairs in the current Constretto configuration
Provides all configuration key/value pairs in the current Constretto configuration
Iterator of Pairs of configuration key, and values as strings
1.1
Appends (lower precedence) a new configuration tag at runtime.
Appends (lower precedence) a new configuration tag at runtime. Will try to reconfigure any classes configured with on() or at()
the new Tag to be appended to the list of constretto configuration tags.
Will be removed once Constretto 3 is released
1.1
ConstrettoConversionException
If a conversion error occurs when reconfiguring objects.
Clears all tags in Constretto including the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class.
Clears all tags in Constretto including the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class. Resulting in Constretto having no configuration tags registered.
This is a non recoverable operation and after use you will need to build your tags from scratch.
if set constretto will run the reconfigure() method after clearing. Note this may result in exceptions from constretto if default values does not exist for all keys injected in methods or fields annotated with @Configure or @Configuration
Will be removed once Constretto 3 is released
1.1
ConstrettoConversionException
If a conversion error occurs when reconfiguring objects.
Prepends (higher precedence) a new configuration tag at runtime.
Prepends (higher precedence) a new configuration tag at runtime. Will try to reconfigure any classes configured with on() or at()
the new Tag to be prepended to the list of constretto configuration tags.
Will be removed once Constretto 3 is released
1.1
ConstrettoConversionException
If a conversion error occurs when reconfiguring objects.
Removes a configuration tag at runtime.
Removes a configuration tag at runtime. Will try to reconfigure any classes configured with on() or at()
the new tags to be appended to the list of constretto configuration tags.
Will be removed once Constretto 3 is released
1.1
ConstrettoConversionException
If a conversion error occurs when reconfiguring objects.
Resets all tags in Constretto to the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class.
Resets all tags in Constretto to the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class.
if set constretto will run the reconfigure() method after the reset. Note this may result in exceptions from constretto if default values does not exist for all keys injected in methods or fields annotated with @Configure or @Configuration
Will be removed once Constretto 3 is released
1.1
ConstrettoConversionException
If a conversion error occurs when reconfiguring objects.