Class SimpleLookupValueProvider

java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.deployit.plugin.api.udm.lookup.SimpleLookupValueProvider
All Implemented Interfaces:
ConfigurationItem, LookupValueProvider, Serializable, Comparable<BaseConfigurationItem>

@Metadata(root=CONFIGURATION, description="A LookupValueProvider that stores values in the database.") public class SimpleLookupValueProvider extends BaseConfigurationItem implements LookupValueProvider
See Also:
  • Field Details

  • Constructor Details

    • SimpleLookupValueProvider

      public SimpleLookupValueProvider()
  • Method Details

    • lookup

      public String lookup(String key, boolean password) throws Exception
      Description copied from interface: LookupValueProvider
      Lookup an external value by key.
      Specified by:
      lookup in interface LookupValueProvider
      Parameters:
      key - The key to find
      password - Whether it is used for a password property.
      Returns:
      The value found
      Throws:
      Exception - when the lookup cannot be performed or the provider cannot provide a value, e.g. when a secret is requested for a non password field.