Interface EnvironmentPackagesDeducer


public interface EnvironmentPackagesDeducer
Defines a contract for deducing a list of package names associated with the current environment. Implementations of this interface determine the relevant package names dynamically at runtime based on the specific environment or context they execute in. The NONE constant provides an implementation that returns an empty list, effectively representing a no-op deducer.
Since:
5.0
Author:
Denis Stepanov
  • Field Details

    • NONE

      static final EnvironmentPackagesDeducer NONE
      A predefined, constant implementation of EnvironmentPackagesDeducer that represents a no-operation strategy. The NONE instance always returns an empty list when the deducePackages() method is invoked, signifying that no package names are deduced or applicable for the current environment.
  • Method Details

    • deducePackages

      @NonNull @NonNull List<String> deducePackages()
      Deduces and returns a list of package names relevant to the current runtime environment. The specific package names are determined dynamically based on the context in which this method is executed.
      Returns:
      a non-null list of strings representing the deduced package names. The list may be empty if no relevant packages are identified.