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 'plugin.pluginID.config.foo.*'
    
     new PluginConfigKey <String>(getPluginId(), "foo.*", "Key label", "Key desc", true, new PluginConfigKeyType(PluginConfigKeyType.Format.STRING), null, null, null)
     
    or using builder
    
     PluginConfigKey.<String>builder()
          .pluginId(getPluginId())
          .id("foo.*")
          .label("Key label")
          .description("Key desc")
          .longDescription("Longer more explanatory description of key")
          .required(true)
          .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()