Package io.micronaut.jaxrs.runtime.core
Class JaxRsApplicationUriNamingStrategy
java.lang.Object
io.micronaut.web.router.naming.HyphenatedUriNamingStrategy
io.micronaut.jaxrs.runtime.core.JaxRsApplicationUriNamingStrategy
- All Implemented Interfaces:
RouteBuilder.UriNamingStrategy
@Singleton
@Requires(classes=io.micronaut.web.router.RouteBuilder.UriNamingStrategy.class) @Requires(beans=jakarta.ws.rs.core.Application.class)
@Replaces(io.micronaut.web.router.naming.HyphenatedUriNamingStrategy.class)
@Primary
public class JaxRsApplicationUriNamingStrategy
extends HyphenatedUriNamingStrategy
Configures a URI naming strategy based on the
ApplicationPath
annotation.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionJaxRsApplicationUriNamingStrategy
(BeanContext beanContext) Constructs a new uri naming strategy for the given property. -
Method Summary
Modifier and TypeMethodDescriptionresolveUri
(BeanDefinition<?> beanDefinition) resolveUri
(Class type) resolveUri
(Class type, PropertyConvention id) resolveUri
(String property) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.web.router.RouteBuilder.UriNamingStrategy
normalizeUri
-
Constructor Details
-
JaxRsApplicationUriNamingStrategy
Constructs a new uri naming strategy for the given property.- Parameters:
beanContext
- The bean context
-
-
Method Details
-
resolveUri
- Specified by:
resolveUri
in interfaceRouteBuilder.UriNamingStrategy
- Overrides:
resolveUri
in classHyphenatedUriNamingStrategy
-
resolveUri
- Specified by:
resolveUri
in interfaceRouteBuilder.UriNamingStrategy
- Overrides:
resolveUri
in classHyphenatedUriNamingStrategy
-
resolveUri
- Specified by:
resolveUri
in interfaceRouteBuilder.UriNamingStrategy
- Overrides:
resolveUri
in classHyphenatedUriNamingStrategy
-
resolveUri
-