Spring for Apache Hadoop

org.springframework.data.hadoop.config.common.annotation
Interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>

Type Parameters:
O - The object being built by the AnnotationBuilder B
B - The AnnotationBuilder that builds objects of type O. This is also the AnnotationBuilder that is being configured.
All Known Subinterfaces:
SpringYarnConfigurer
All Known Implementing Classes:
AnnotationConfigurerAdapter, DefaultClientMasterRunnerConfigurer, DefaultEnvironmentClasspathConfigurer, DefaultLocalResourcesCopyConfigurer, DefaultLocalResourcesHdfsConfigurer, DefaultMasterContainerAllocatorConfigurer, DefaultMasterContainerRunnerConfigurer, DefaultPropertiesConfigurer, DefaultResourceConfigurer, SpringYarnConfigurerAdapter, YarnClientAutoConfiguration.SpringYarnConfig, YarnContainerAutoConfiguration.SpringYarnConfig

public interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>

Allows for configuring an AnnotationBuilder. All AnnotationConfigurers first have their init(AnnotationBuilder) method invoked. After all init(AnnotationBuilder) methods have been invoked, each configure(AnnotationBuilder) method is invoked.

Author:
Rob Winch, Janne Valkealahti
See Also:
AbstractConfiguredAnnotationBuilder

Method Summary
 void configure(B builder)
          Configure the AnnotationBuilder by setting the necessary properties on the AnnotationBuilder.
 void init(B builder)
          Initialise the AnnotationBuilder.
 boolean isAssignable(AnnotationBuilder<O> builder)
           
 

Method Detail

init

void init(B builder)
          throws java.lang.Exception
Initialise the 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 configure(AnnotationBuilder) method uses the correct shared objects when building.

Parameters:
builder - the builder
Throws:
java.lang.Exception - if error occurred

configure

void configure(B builder)
               throws java.lang.Exception
Configure the AnnotationBuilder by setting the necessary properties on the AnnotationBuilder.

Parameters:
builder - the builder
Throws:
java.lang.Exception - if error occurred

isAssignable

boolean isAssignable(AnnotationBuilder<O> builder)

Spring for Apache Hadoop