public interface PropertyProviderGenerator
<property-provider name="foo" generator="org.example.FooGenerator"/>A default implementation in JS can be included inside the property-provider tag as usual, and will be used if the generator returns
null
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
generate(TreeLogger logger,
java.util.SortedSet<java.lang.String> possibleValues,
java.lang.String fallback,
java.util.SortedSet<ConfigurationProperty> configProperties)
Generate a property provider.
|
java.lang.String generate(TreeLogger logger, java.util.SortedSet<java.lang.String> possibleValues, java.lang.String fallback, java.util.SortedSet<ConfigurationProperty> configProperties) throws UnableToCompleteException
logger
- TreeLoggerpossibleValues
- the possible values of this propertyfallback
- the fallback value for this property, or nullconfigProperties
- the configuration properties for this moduleUnableToCompleteException
- after logging the message if processing
is unable to continue