クラス MvcNamespaceUtils
java.lang.ObjectSE
org.springframework.web.servlet.config.MvcNamespaceUtils
MVC 名前空間 BeanDefinitionParsers で使用する便利なメソッド。
- 導入:
- 3.1
- 作成者:
- Rossen Stoyanchev, Juergen Hoeller, Brian Clozel, Marten Deinum
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明static ObjectSE
annotation-driven
要素によって作成または登録されたContentNegotiationManager
Bean を見つけます。static RuntimeBeanReference
registerCorsConfigurations
(MapSE<StringSE, CorsConfiguration> corsConfigurations, ParserContext context, ObjectSE source) すでに登録されていない限り、Map<String, CorsConfiguration>
(マップされたCorsConfiguration
)を既知の名前で登録します。static void
registerDefaultComponents
(ParserContext context, ObjectSE source) static RuntimeBeanReference
registerPathMatcher
(RuntimeBeanReference pathMatcherRef, ParserContext context, ObjectSE source) エイリアスが既存の既知の名前に追加されるか、PathMatcher
の新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。static RuntimeBeanReference
registerUrlPathHelper
(RuntimeBeanReference urlPathHelperRef, ParserContext context, ObjectSE source) エイリアスが既存の既知の名前に追加されるか、UrlPathHelper
の新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。
コンストラクターの詳細
MvcNamespaceUtils
public MvcNamespaceUtils()
メソッドの詳細
registerDefaultComponents
registerUrlPathHelper
public static RuntimeBeanReference registerUrlPathHelper(@Nullable RuntimeBeanReference urlPathHelperRef, ParserContext context, @Nullable ObjectSE source) エイリアスが既存の既知の名前に追加されるか、UrlPathHelper
の新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。- 戻り値:
- この
UrlPathHelper
インスタンスへの RuntimeBeanReference
registerPathMatcher
public static RuntimeBeanReference registerPathMatcher(@Nullable RuntimeBeanReference pathMatcherRef, ParserContext context, @Nullable ObjectSE source) エイリアスが既存の既知の名前に追加されるか、PathMatcher
の新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。- 戻り値:
- この
PathMatcher
インスタンスへの RuntimeBeanReference
registerCorsConfigurations
public static RuntimeBeanReference registerCorsConfigurations(@Nullable MapSE<StringSE, CorsConfiguration> corsConfigurations, ParserContext context, @Nullable ObjectSE source) すでに登録されていない限り、Map<String, CorsConfiguration>
(マップされたCorsConfiguration
)を既知の名前で登録します。null 以外の CORS 構成が提供されている場合、Bean 定義が更新される可能性があります。- 戻り値:
- この
Map<String, CorsConfiguration>
インスタンスへの RuntimeBeanReference
getContentNegotiationManager
annotation-driven
要素によって作成または登録されたContentNegotiationManager
Bean を見つけます。- 戻り値:
- Bean 定義、Bean 参照、定義されていない場合は
null