|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.configuration.ConfigurationFactoryBean
public class ConfigurationFactoryBean
FactoryBean for creating Configuration
instances.
Constructor Summary | |
---|---|
ConfigurationFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected Configuration |
createConfiguration(Configuration existing)
Creates a configuration instance potentially using the existing one (passed as an argument - which can be null). |
Configuration |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
protected void |
postProcessConfiguration(Configuration configuration)
|
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setConfiguration(Configuration configuration)
Sets the parent configuration. |
void |
setInitialize(boolean initialize)
Indicates whether the configuration object should be initialized (true) or not. |
void |
setLoadDefaults(boolean loadDefaults)
Indicates whether to load the defaults (the default) or not for this configuration. |
void |
setProperties(Properties properties)
Sets the configuration properties. |
void |
setRegisterUrlHandler(boolean register)
Indicates whether the configuration should register an URL handler (for allowing urls to understand HDFS prefixes, such as hdfs) or not. |
void |
setResources(Set<Resource> resources)
Sets the configuration resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationFactoryBean()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected Configuration createConfiguration(Configuration existing)
existing
-
protected void postProcessConfiguration(Configuration configuration)
public Configuration getObject()
getObject
in interface FactoryBean<Configuration>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<Configuration>
public boolean isSingleton()
isSingleton
in interface FactoryBean<Configuration>
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setConfiguration(Configuration configuration)
configuration
- The configuration to set.public void setLoadDefaults(boolean loadDefaults)
loadDefaults
- The loadDefaults to set.public void setResources(Set<Resource> resources)
resources
- The resources to set.public void setProperties(Properties properties)
properties
- The properties to set.public void setInitialize(boolean initialize)
initialize
- whether to initialize or not.public void setRegisterUrlHandler(boolean register)
register
- whether to register an URL handler or not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |