Interface DependencyInjectionValidator

All Known Implementing Classes:
DefaultDependencyInjectionValidator

public interface DependencyInjectionValidator
Validates dependency-injection wiring using BeanDefinition metadata.

Implementations must not require the context to be started and should avoid bean instantiation.

  • Method Summary

    Modifier and Type
    Method
    Description
    validate(io.micronaut.context.ConfigurableBeanContext beanContext)
    Validates dependency-injection relationships available in the given bean context.
  • Method Details

    • validate

      Set<DependencyInjectionError> validate(io.micronaut.context.ConfigurableBeanContext beanContext)
      Validates dependency-injection relationships available in the given bean context.
      Parameters:
      beanContext - The configurable bean context to inspect
      Returns:
      The set of detected dependency-injection errors. Empty when no issues are found.