Package io.micronaut.context.env
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final EnvironmentPackagesDeducerA predefined, constant implementation ofEnvironmentPackagesDeducerthat represents a no-operation strategy. -
Method Summary
Modifier and TypeMethodDescriptionDeduces and returns a list of package names relevant to the current runtime environment.
-
Field Details
-
NONE
A predefined, constant implementation ofEnvironmentPackagesDeducerthat represents a no-operation strategy. TheNONEinstance always returns an empty list when thededucePackages()method is invoked, signifying that no package names are deduced or applicable for the current environment.
-
-
Method Details
-
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.
-