public class SpringHadoopConfigurerAdapter extends java.lang.Object implements SpringHadoopConfigurer
SpringHadoopConfigurer
instance. The implementation allows customization by overriding methods.EnableHadoop
Constructor and Description |
---|
SpringHadoopConfigurerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
configure(HadoopConfigConfigurer config)
Configure
Configuration via HadoopConfigBuilder builder. |
void |
configure(SpringHadoopConfigBuilder builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder . |
protected HadoopConfigBuilder |
getConfigBuilder() |
void |
init(SpringHadoopConfigBuilder builder)
Initialise the
AnnotationBuilder . |
boolean |
isAssignable(AnnotationBuilder<SpringHadoopConfigs> builder) |
void |
setObjectPostProcessor(ObjectPostProcessor<java.lang.Object> objectPostProcessor) |
public final void init(SpringHadoopConfigBuilder builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
. Here only shared state should be
created and modified, but not properties on the AnnotationBuilder
used for building the object. This ensures that the
AnnotationConfigurer.configure(AnnotationBuilder)
method uses the correct shared
objects when building.init
in interface AnnotationConfigurer<SpringHadoopConfigs,SpringHadoopConfigBuilder>
builder
- the builderjava.lang.Exception
- if error occurredpublic void configure(SpringHadoopConfigBuilder builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.configure
in interface AnnotationConfigurer<SpringHadoopConfigs,SpringHadoopConfigBuilder>
builder
- the builderjava.lang.Exception
- if error occurredpublic boolean isAssignable(AnnotationBuilder<SpringHadoopConfigs> builder)
isAssignable
in interface AnnotationConfigurer<SpringHadoopConfigs,SpringHadoopConfigBuilder>
public void configure(HadoopConfigConfigurer config) throws java.lang.Exception
SpringHadoopConfigurer
Configuration
via HadoopConfigBuilder
builder.configure
in interface SpringHadoopConfigurer
config
- the HadoopConfigConfigurer
builderjava.lang.Exception
- if error occurred@Autowired(required=false) public void setObjectPostProcessor(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
protected final HadoopConfigBuilder getConfigBuilder() throws java.lang.Exception
java.lang.Exception