Interface DirectJunitExtension.ParamHandler<T>

Type Parameters:
T - type of the parameter (such as HttpRouting.Builder
Enclosing interface:
DirectJunitExtension

public static interface DirectJunitExtension.ParamHandler<T>
Handler to provide an instance that can be injected as a parameter to SetUpRoute static methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String socketName)
    Get an instance to be injected.
    default void
    handle(Method method, String socketName, T value)
    Handle the value after the method has been called, and its body updated our provided instance.
  • Method Details

    • get

      T get(String socketName)
      Get an instance to be injected.
      Parameters:
      socketName - name of a socket this will belong to
      Returns:
      a new instance to inject as a parameter to the method
    • handle

      default void handle(Method method, String socketName, T value)
      Handle the value after the method has been called, and its body updated our provided instance.
      Parameters:
      method - method that updated the value
      socketName - socket name
      value - the value we provided with get(String)