クラス MvcNamespaceUtils
java.lang.ObjectSE
org.springframework.web.servlet.config.MvcNamespaceUtils
MVC 名前空間 BeanDefinitionParsers で使用する便利なメソッド。
- 導入:
- 3.1
- 作成者:
- Rossen Stoyanchev, Juergen Hoeller, Brian Clozel, Marten Deinum
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static ObjectSEannotation-driven要素によって作成または登録されたContentNegotiationManagerBean を見つけます。static RuntimeBeanReferenceregisterCorsConfigurations(MapSE<StringSE, CorsConfiguration> corsConfigurations, ParserContext context, ObjectSE source) すでに登録されていない限り、Map<String, CorsConfiguration>(マップされたCorsConfiguration)を既知の名前で登録します。static voidregisterDefaultComponents(ParserContext context, ObjectSE source) static RuntimeBeanReferenceregisterPathMatcher(RuntimeBeanReference pathMatcherRef, ParserContext context, ObjectSE source) エイリアスが既存の既知の名前に追加されるか、PathMatcherの新しいインスタンスがその既知の名前で登録されます(まだ登録されていない場合)。static RuntimeBeanReferenceregisterUrlPathHelper(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要素によって作成または登録されたContentNegotiationManagerBean を見つけます。- 戻り値:
- Bean 定義、Bean 参照、定義されていない場合は
null