Skip to main content

Layer1InjectionOrder

Package: velox.api.layer1.annotations

Type: Annotation Interface

@Retention(RUNTIME)
public @interface Layer1InjectionOrder

Description​

Specifies the order of injection of strategies in the layers chain.

The order of injection is determined by the value of the annotation.

The lower the value, the lower the strategy is injected in the chain compared to other strategies (closer to the data provider).

If two strategies have the same order number, the order of injection is determined by the alphabetical order of the entry point class names.

The default order value is 0.

Note: This annotation can be used only with classes marked with Layer1Injectable and Layer1UpstreamDataEditor.

Example of injection order:

    • Data Provider *
  1. ...
  2. com.example.X1, order value = -1000
  3. com.example.X2, order value = -42
  4. ...
  5. com.example.A3, order value = 0
  6. com.example.B3, order value = 0
  7. com.example.C3, order value = 0
  8. com.example.D3, order value = 0
  9. ...
  10. com.example.X4, order value = 1
  11. com.example.X5, order value = 2
  12. ...
  13. com.example.A6, order value = 100
  14. com.example.B6, order value = 100
  15. com.example.C6, order value = 100
  16. ...
  17. com.example.X7, order value = 99999
  18. ...

Elements​

value​

int value()

Returns: The order value