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.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setLoader(org.springframework.core.io.support.ResourcePatternResolver loader)
loader - the new resource pattern loader