Interface Substitutable<T>

Type Parameters:
T - the type of the resource implementing this interface
All Known Implementing Classes:
ConsumerConfiguration, SearchParameters
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Substitutable<T>
A functional interface representing a resource with substitutable properties. This interface is designed to provide a mechanism for substituting placeholders in the properties of a resource with resolved values. The resource implementing this interface is expected to produce a new instance with all necessary substitutions applied.

Implementing classes should define the logic for resolving and substituting placeholder values from the application's configuration or environment.

  • Method Summary

    Modifier and Type
    Method
    Description
    Replaces placeholders in the properties of the current resource with resolved values from application properties and returns a new instance of type T.
  • Method Details

    • substituteProperties

      T substituteProperties()
      Replaces placeholders in the properties of the current resource with resolved values from application properties and returns a new instance of type T.
      Returns:
      a new instance of the resource with substituted properties.