Interface Plugin


public interface Plugin
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
    Modifier and Type
    Field
    Description
    static final Class<?>[]
    Empty array of classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Apply the plugin to the scope builder.
    default Class<?>[]
    Return the classes that the plugin provides.
    default Class<?>[]
    Return the aspect classes that the plugin provides.
  • Field Details

  • Method Details

    • apply

      void apply(BeanScopeBuilder builder)
      Apply the plugin to the scope builder.
    • provides

      default Class<?>[] provides()
      Return the classes that the plugin provides.
    • providesAspects

      default Class<?>[] providesAspects()
      Return the aspect classes that the plugin provides.