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 *
- ...
- com.example.X1, order value = -1000
- com.example.X2, order value = -42
- ...
- com.example.A3, order value = 0
- com.example.B3, order value = 0
- com.example.C3, order value = 0
- com.example.D3, order value = 0
- ...
- com.example.X4, order value = 1
- com.example.X5, order value = 2
- ...
- com.example.A6, order value = 100
- com.example.B6, order value = 100
- com.example.C6, order value = 100
- ...
- com.example.X7, order value = 99999
- ...
Elements​
value​
int value()
Returns: The order value