接口 Configurer<O,B extends Builder<O>>
-
- 类型参数:
O- The object being built by theBuilderBB- TheBuilderthat builds objects of type O. This is also theBuilderthat is being configured.
- 所有已知实现类:
AbstractConfigurer
public interface Configurer<O,B extends Builder<O>>Allows for configuring aBuilder. AllConfigurerfirst have theirinit(Builder)method invoked. After allinit(Builder)methods have been invoked, eachconfigure(Builder)method is invoked.
-
-
方法详细资料
-
init
void init(B builder) throws Exception
Initialize theBuilder. Here only shared state should be created and modified, but not properties on theBuilderused for building the object. This ensures that theconfigure(Builder)method uses the correct shared objects when building. Configurers should be applied here.- 参数:
builder-- 抛出:
Exception
-
-