public class CustomResourceLoaderRegistrar
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
ResourceEditor
to allow
HdfsResourceLoader
to be searched first. Also sets ResourceLoader
for the Application context.Constructor and Description |
---|
CustomResourceLoaderRegistrar() |
Modifier and Type | Method and Description |
---|---|
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)
Sets the resource pattern loader.
|
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setLoader(org.springframework.core.io.support.ResourcePatternResolver loader)
loader
- the new resource pattern loader