Class DependencyInjectionConfigurationValidator
java.lang.Object
io.micronaut.jsonschema.configuration.validator.cli.DependencyInjectionConfigurationValidator
CLI-oriented dependency-injection validator that builds an application context from a supplied
runtime classpath and environment set, then validates bean wiring metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyInjectionConfigurationValidator(List<URL> classpath, List<String> environments, boolean deduceEnvironment, DependencyInjectionValidator validator) -
Method Summary
Modifier and TypeMethodDescriptionforClasspath(String classpath, List<String> environments, boolean deduceEnvironment) Creates a validator from a platform classpath string.forClasspath(String classpath, List<String> environments, boolean deduceEnvironment, List<String> suppressedInjectionErrors) forClasspath(String classpath, List<String> environments, boolean deduceEnvironment, List<String> suppressedInjectionErrors, DependencyInjectionValidationStrategy validationStrategy) validate()Executes dependency-injection validation for the configured classpath and environments.
-
Constructor Details
-
DependencyInjectionConfigurationValidator
public DependencyInjectionConfigurationValidator(List<URL> classpath, List<String> environments, boolean deduceEnvironment, DependencyInjectionValidator validator) - Parameters:
classpath- Runtime classpath URLs used to create the validation classloaderenvironments- Environment names passed toApplicationContext.builder(String...)deduceEnvironment- Whether Micronaut should deduce environmentsvalidator- The dependency-injection validator implementation
-
-
Method Details
-
forClasspath
public static DependencyInjectionConfigurationValidator forClasspath(String classpath, List<String> environments, boolean deduceEnvironment) Creates a validator from a platform classpath string.- Parameters:
classpath- The classpath string using the platform path separatorenvironments- The environment names to activatededuceEnvironment- Whether environment deduction is enabled- Returns:
- A configured validator instance
-
forClasspath
-
forClasspath
public static DependencyInjectionConfigurationValidator forClasspath(String classpath, List<String> environments, boolean deduceEnvironment, List<String> suppressedInjectionErrors, DependencyInjectionValidationStrategy validationStrategy) -
validate
Executes dependency-injection validation for the configured classpath and environments.- Returns:
- The set of detected dependency-injection errors
-