Class AwsPropertySource<K extends AwsPropertySource,T>

Type Parameters:
K - - self
T - - the source type
Direct Known Subclasses:
AppConfigPropertySource, ImdsPropertySource, ParameterStorePropertySource, S3PropertySource, SecretsManagerPropertySource

public abstract class AwsPropertySource<K extends AwsPropertySource,T> extends EnumerablePropertySource<T>
Base class for all AWS loaded property sources.
Since:
3.0
Author:
Maciej Walkowiak
  • Constructor Details

    • AwsPropertySource

      public AwsPropertySource(String name, T source)
  • Method Details

    • init

      public abstract void init()
      Initializes & fetches properties.
    • copy

      public abstract K copy()
      Creates a non-initialized copy of the property source.
      Returns:
      a property source
    • refresh

      public void refresh(AwsPropertySource<?,?> clone)
      Takes over state from a clone created by copy() and initialized by the change detector on every execution cycle. Implementations holding state that must survive across cycles, such as a session token, should override this method.
      Parameters:
      clone - an initialized copy of this property source