Class PluginConfigKey<T>

  • Type Parameters:
    T - type of key value
    All Implemented Interfaces:
    PluginConfigKeyDetails, PluginDetailsBase

    public class PluginConfigKey<T>
    extends PluginConfigKeyBase
    Defines plugin configuration key properties For example, to define configuration key '*'
     new PluginConfigKey <String>(getPluginId(), "foo.*", "Key label", "Key desc", true, new PluginConfigKeyType(PluginConfigKeyType.Format.STRING), null, null, null)
    or using builder
          .label("Key label")
          .description("Key desc")
          .longDescription("Longer more explanatory description of key")
          .type(new PluginConfigKeyType(PluginConfigKeyType.Format.STRING))
    - to define default value provide value in expected format getDefaultValue() - to restrict allowed values getAllowedValue() - to set dependency of keys on each other getShowIfKeyHasValue()