Interface Plugin


public interface Plugin
Plugin that can inject into fields.

The avaje-jex-test provides a plugin that would start a http server and inject a http client into the field for the tests to use.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The plugin scope for the test.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a plugin scope for either EACH or ALL (per test or per class)
    boolean
    forType(Type type)
    Return true if this plugin should inject for this class.
  • Method Details

    • forType

      boolean forType(Type type)
      Return true if this plugin should inject for this class.
    • createScope

      Plugin.Scope createScope(BeanScope beanScope)
      Create a plugin scope for either EACH or ALL (per test or per class)

      The scope will be closed appropriately (afterEach or afterAll).