public abstract class MvcNamespaceUtils extends Object
Constructor and Description |
---|
MvcNamespaceUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
getContentNegotiationManager(ParserContext context)
Find the
ContentNegotiationManager bean created by or registered
with the annotation-driven element. |
static RuntimeBeanReference |
registerCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations,
ParserContext context,
Object source)
Registers a
Map<String, CorsConfiguration> (mapped CorsConfiguration s)
under a well-known name unless already registered. |
static void |
registerDefaultComponents(ParserContext context,
Object source) |
static RuntimeBeanReference |
registerPathMatcher(RuntimeBeanReference pathMatcherRef,
ParserContext context,
Object source)
Adds an alias to an existing well-known name or registers a new instance of a
PathMatcher
under that well-known name, unless already registered. |
static RuntimeBeanReference |
registerUrlPathHelper(RuntimeBeanReference urlPathHelperRef,
ParserContext context,
Object source)
Adds an alias to an existing well-known name or registers a new instance of a
UrlPathHelper
under that well-known name, unless already registered. |
public static void registerDefaultComponents(ParserContext context, @Nullable Object source)
public static RuntimeBeanReference registerUrlPathHelper(@Nullable RuntimeBeanReference urlPathHelperRef, ParserContext context, @Nullable Object source)
UrlPathHelper
under that well-known name, unless already registered.UrlPathHelper
instancepublic static RuntimeBeanReference registerPathMatcher(@Nullable RuntimeBeanReference pathMatcherRef, ParserContext context, @Nullable Object source)
PathMatcher
under that well-known name, unless already registered.PathMatcher
instancepublic static RuntimeBeanReference registerCorsConfigurations(@Nullable Map<String,CorsConfiguration> corsConfigurations, ParserContext context, @Nullable Object source)
Map<String, CorsConfiguration>
(mapped CorsConfiguration
s)
under a well-known name unless already registered. The bean definition may be updated
if a non-null CORS configuration is provided.Map<String, CorsConfiguration>
instance@Nullable public static Object getContentNegotiationManager(ParserContext context)
ContentNegotiationManager
bean created by or registered
with the annotation-driven
element.null
if none defined