@Singleton @Requires(property="micronaut.router.versioning.enabled",value="true") @Requires(beans=RoutesVersioningConfiguration.class) public class VersionAwareRouterListener extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<Router>
Router with version matching logic.| Constructor and Description |
|---|
VersionAwareRouterListener(VersionRouteMatchFilter filter)
Creates a configuration to decorate existing
Router beans with a FilteredRouter. |
| Modifier and Type | Method and Description |
|---|---|
Router |
onCreated(io.micronaut.context.event.BeanCreatedEvent<Router> event)
Returns a wrapped
Router to FilteredRouter. |
public VersionAwareRouterListener(VersionRouteMatchFilter filter)
Router beans with a FilteredRouter.filter - A VersionRouteMatchFilter to delegate routes filteringpublic Router onCreated(io.micronaut.context.event.BeanCreatedEvent<Router> event)
Router to FilteredRouter.