Interface Configurable<T>

Type Parameters:
T - the type of configuration object provided by this instance

public interface Configurable<T>
Interface for objects that can provide access to their configuration.

This interface establishes a consistent pattern for accessing configuration objects from service instances. Implementations may either store the configuration internally or construct it on-demand from their current state.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the configuration object associated with this instance.
  • Method Details

    • getConfiguration

      @Nonnull T getConfiguration()
      Returns the configuration object associated with this instance.

      Implementations may either return a stored configuration object or construct one on-demand from the current state of the instance.

      Returns:
      the configuration object, never null