Interface Plugin

All Superinterfaces:
InjectExtension, InjectPlugin

@Deprecated(forRemoval=true) public interface Plugin extends InjectPlugin
Deprecated, for removal: This API element is subject to removal in a future version.
migrate to InjectPlugin
A Plugin that can be applied when creating a bean scope.

Typically, a plugin might provide a default dependency via BeanScopeBuilder.provideDefault(Type, java.util.function.Supplier).

  • Field Summary

    Fields inherited from interface io.avaje.inject.spi.InjectPlugin

    EMPTY_CLASSES
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Apply the plugin to the scope builder.
    default Class<?>[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the classes that the plugin provides.
    default Class<?>[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the aspect classes that the plugin provides.
  • Method Details

    • apply

      void apply(BeanScopeBuilder builder)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Apply the plugin to the scope builder.
      Specified by:
      apply in interface InjectPlugin
    • provides

      default Class<?>[] provides()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the classes that the plugin provides.
      Specified by:
      provides in interface InjectPlugin
    • providesAspects

      default Class<?>[] providesAspects()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the aspect classes that the plugin provides.
      Specified by:
      providesAspects in interface InjectPlugin