Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({TYPE, METHOD})
public @interface Order
Where a bean stands among the beans of its type: the lower the value, the
earlier it comes in a List an injection point receives, and the earlier a
SecurityFilterChain is asked whether a request is its own.
@Bean
@Order(1)
SecurityFilterChain api(HttpSecurity http) { ... }
@Bean
@Order(2)
SecurityFilterChain pages(HttpSecurity http) { ... }
A bean without one comes last, in the order the build found it. Beans with
the same value keep that order among themselves. The order says nothing about
which bean a single injection point receives – that is @Primary and
@Qualifier – or about the order beans are constructed in.
Fields
public static final int HIGHEST_PRECEDENCE = -2147483648 | The value that comes before every other. |
public static final int LOWEST_PRECEDENCE = 2147483647 | The value of a bean that carries no @Order. |
Methods
public abstract int value() default 2147483647 | The position: HIGHEST_PRECEDENCE comes first, LOWEST_PRECEDENCE last. |
Field details
HIGHEST_PRECEDENCE
public static final int HIGHEST_PRECEDENCE = -2147483648The value that comes before every other.
LOWEST_PRECEDENCE
public static final int LOWEST_PRECEDENCE = 2147483647The value of a bean that carries no
@Order.Method details
value
public abstract int value() default 2147483647The position:
HIGHEST_PRECEDENCE comes first, LOWEST_PRECEDENCE last.