To override the default behavior for either of the helper classes, either extend the default implementations (, DefaultRouteData), or implement the relevant interface directly. To ensure your implementation is used instead of the default, add the annotation to your class with the value being the default implementation.