MethodOrderer
public static class MethodOrderer.OrderAnnotation extends Object implements MethodOrderer
MethodOrderer
that sorts methods based on the @Order
annotation.
Any methods that are assigned the same order value will be sorted arbitrarily adjacent to each other.
Any methods not annotated with @Order
will be assigned a default
order value of Integer.MAX_VALUE
which will effectively cause them to
appear at the end of the sorted list.
MethodOrderer.Alphanumeric, MethodOrderer.OrderAnnotation, MethodOrderer.Random
Constructor | Description |
---|---|
OrderAnnotation() |
Modifier and Type | Method | Description |
---|---|---|
void |
orderMethods(MethodOrdererContext context) |
Sort the methods encapsulated in the supplied
MethodOrdererContext based on the @Order
annotation. |
getDefaultExecutionMode
public void orderMethods(MethodOrdererContext context)
MethodOrdererContext
based on the @Order
annotation.orderMethods
in interface MethodOrderer
context
- the MethodOrdererContext
containing the
method descriptors
to order; never null
MethodOrderer.getDefaultExecutionMode()
Copyright © 2019. All rights reserved.