public class CustomResourceLoaderRegistrar
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
ResourceEditor
をオーバーライドして、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.BeansException
org.springframework.beans.factory.config.BeanFactoryPostProcessor
の postProcessBeanFactory
org.springframework.beans.BeansException
public int getOrder()
org.springframework.core.Ordered
の getOrder
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware
の setApplicationContext
org.springframework.beans.BeansException
public void setLoader(org.springframework.core.io.support.ResourcePatternResolver loader)
loader
- 新しいリソースパターンローダー