org.springframework.data.hadoop.fs
Class CustomResourceLoaderRegistrar

java.lang.Object
  extended by org.springframework.data.hadoop.fs.CustomResourceLoaderRegistrar
All Implemented Interfaces:
BeanFactoryPostProcessor, ApplicationContextAware, Ordered

public class CustomResourceLoaderRegistrar
extends Object
implements ApplicationContextAware, BeanFactoryPostProcessor, Ordered

Utility class that overrides the built-in ResourceEditor to allow HdfsResourceLoader to be searched first.

Author:
Costin Leau

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
CustomResourceLoaderRegistrar()
           
 
Method Summary
 int getOrder()
           
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setLoader(ResourcePatternResolver loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomResourceLoaderRegistrar

public CustomResourceLoaderRegistrar()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
                            throws BeansException
Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
Throws:
BeansException

getOrder

public int getOrder()
Specified by:
getOrder in interface Ordered

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

setLoader

public void setLoader(ResourcePatternResolver loader)