public class CustomResourceLoaderRegistrar
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.OrderedResourceEditor をオーバーライドして、HdfsResourceLoader を最初に検索できるようにするユーティリティクラス。また、アプリケーションコンテキストに ResourceLoader を設定します。| コンストラクターと説明 |
|---|
CustomResourceLoaderRegistrar() |
| 修飾子と型 | メソッドと説明 |
|---|---|
int | getOrder() |
void | postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void | setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void | setLoader(org.springframework.core.io.support.ResourcePatternResolver loader) リソースパターンローダーを設定します。 |
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansExceptionorg.springframework.beans.factory.config.BeanFactoryPostProcessor 内の postProcessBeanFactory org.springframework.beans.BeansExceptionpublic int getOrder()
org.springframework.core.Ordered 内の getOrder public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansExceptionorg.springframework.context.ApplicationContextAware 内の setApplicationContext org.springframework.beans.BeansExceptionpublic void setLoader(org.springframework.core.io.support.ResourcePatternResolver loader)
loader - 新しいリソースパターンローダー