org.springframework.data.hadoop.test.support
Class ConfigurationDelegatingFactoryBean

java.lang.Object
  extended by org.springframework.data.hadoop.test.support.ConfigurationDelegatingFactoryBean
All Implemented Interfaces:
FactoryBean<Configuration>, InitializingBean

public class ConfigurationDelegatingFactoryBean
extends Object
implements InitializingBean, FactoryBean<Configuration>

Simple factory bean delegating retrieval of hadoop Configuration from a StandaloneHadoopCluster.

Author:
Janne Valkealahti

Constructor Summary
ConfigurationDelegatingFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Configuration getObject()
           
 Class<Configuration> getObjectType()
           
 boolean isSingleton()
           
 void setCluster(HadoopCluster cluster)
          Sets the StandaloneHadoopCluster
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationDelegatingFactoryBean

public ConfigurationDelegatingFactoryBean()
Method Detail

getObject

public Configuration getObject()
                        throws Exception
Specified by:
getObject in interface FactoryBean<Configuration>
Throws:
Exception

getObjectType

public Class<Configuration> getObjectType()
Specified by:
getObjectType in interface FactoryBean<Configuration>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<Configuration>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setCluster

public void setCluster(HadoopCluster cluster)
Sets the StandaloneHadoopCluster

Parameters:
cluster - the StandaloneHadoopCluster