Package io.micronaut.web.router.naming
Class HyphenatedUriNamingStrategy
- java.lang.Object
-
- io.micronaut.web.router.naming.HyphenatedUriNamingStrategy
-
- All Implemented Interfaces:
RouteBuilder.UriNamingStrategy
- Direct Known Subclasses:
ConfigurableUriNamingStrategy
@Singleton @Primary public class HyphenatedUriNamingStrategy extends java.lang.Object implements RouteBuilder.UriNamingStrategy
The defaultRouteBuilder.UriNamingStrategyif none is provided by the application.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description HyphenatedUriNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringresolveUri(io.micronaut.inject.BeanDefinition<?> beanDefinition)Resolve the URI to use for the given type.java.lang.StringresolveUri(java.lang.Class type)Resolve the URI to use for the given type.java.lang.StringresolveUri(java.lang.String property)Resolve the URI to use for the given type.-
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, resolveUri
-
-
-
-
Method Detail
-
resolveUri
public java.lang.String resolveUri(java.lang.Class type)
Description copied from interface:RouteBuilder.UriNamingStrategyResolve the URI to use for the given type.- Specified by:
resolveUriin interfaceRouteBuilder.UriNamingStrategy- Parameters:
type- The type- Returns:
- The URI to use
-
resolveUri
@NonNull public java.lang.String resolveUri(io.micronaut.inject.BeanDefinition<?> beanDefinition)
Description copied from interface:RouteBuilder.UriNamingStrategyResolve the URI to use for the given type.- Specified by:
resolveUriin interfaceRouteBuilder.UriNamingStrategy- Parameters:
beanDefinition- The type- Returns:
- The URI to use
-
resolveUri
@NonNull public java.lang.String resolveUri(java.lang.String property)
Description copied from interface:RouteBuilder.UriNamingStrategyResolve the URI to use for the given type.- Specified by:
resolveUriin interfaceRouteBuilder.UriNamingStrategy- Parameters:
property- The property- Returns:
- The URI to use
-
-