public abstract class MvcNamespaceUtils
extends java.lang.Object
Constructor and Description |
---|
MvcNamespaceUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getContentNegotiationManager(org.springframework.beans.factory.xml.ParserContext context)
Find the
ContentNegotiationManager bean created by or registered
with the annotation-driven element. |
static org.springframework.beans.factory.config.RuntimeBeanReference |
registerCorsConfigurations(java.util.Map<java.lang.String,org.springframework.web.cors.CorsConfiguration> corsConfigurations,
org.springframework.beans.factory.xml.ParserContext context,
java.lang.Object source)
Registers a
Map<String, CorsConfiguration> (mapped CorsConfiguration s)
under a well-known name unless already registered. |
static void |
registerDefaultComponents(org.springframework.beans.factory.xml.ParserContext parserContext,
java.lang.Object source) |
static org.springframework.beans.factory.config.RuntimeBeanReference |
registerPathMatcher(org.springframework.beans.factory.config.RuntimeBeanReference pathMatcherRef,
org.springframework.beans.factory.xml.ParserContext parserContext,
java.lang.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 org.springframework.beans.factory.config.RuntimeBeanReference |
registerUrlPathHelper(org.springframework.beans.factory.config.RuntimeBeanReference urlPathHelperRef,
org.springframework.beans.factory.xml.ParserContext parserContext,
java.lang.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(org.springframework.beans.factory.xml.ParserContext parserContext, @Nullable java.lang.Object source)
public static org.springframework.beans.factory.config.RuntimeBeanReference registerUrlPathHelper(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference urlPathHelperRef, org.springframework.beans.factory.xml.ParserContext parserContext, @Nullable java.lang.Object source)
UrlPathHelper
under that well-known name, unless already registered.UrlPathHelper
instancepublic static org.springframework.beans.factory.config.RuntimeBeanReference registerPathMatcher(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference pathMatcherRef, org.springframework.beans.factory.xml.ParserContext parserContext, @Nullable java.lang.Object source)
PathMatcher
under that well-known name, unless already registered.PathMatcher
instancepublic static org.springframework.beans.factory.config.RuntimeBeanReference registerCorsConfigurations(@Nullable java.util.Map<java.lang.String,org.springframework.web.cors.CorsConfiguration> corsConfigurations, org.springframework.beans.factory.xml.ParserContext context, @Nullable java.lang.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 java.lang.Object getContentNegotiationManager(org.springframework.beans.factory.xml.ParserContext context)
ContentNegotiationManager
bean created by or registered
with the annotation-driven
element.null
if none defined