Package guru.mikelue.jdut
Class ConductorConfig.Builder
- java.lang.Object
-
- guru.mikelue.jdut.ConductorConfig.Builder
-
- Enclosing class:
- ConductorConfig
public class ConductorConfig.Builder extends Object
This object is fed byConductorConfig.build
throughConsumer
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConductorConfig.Builder
namedDecorator(String name, DataGrainDecorator decorator)
Puts named decorator.ConductorConfig.Builder
namedJdbcFunction(String name, JdbcFunction<? extends Connection,?> jdbcFunction)
Puts named JDBC function.ConductorConfig.Builder
namedOperator(String name, DataGrainOperator operator)
Puts named operatorConductorConfig.Builder
namedSupplier(String name, Supplier<?> supplier)
Puts named supplierConductorConfig.Builder
operatorFactory(OperatorFactory newOperatorFactory)
Sets operator factory.ConductorConfig.Builder
parent(ConductorConfig newParent)
Sets the parent configurationConductorConfig.Builder
resourceLoader(Function<String,Reader> newResourceLoader)
Sets the resource reader<E extends RuntimeException>
ConductorConfig.BuildersqlExceptionConvert(SQLExceptionConvert<E> newSqlExceptionConvert)
Sets the conversion forSQLException
.
-
-
-
Method Detail
-
parent
public ConductorConfig.Builder parent(ConductorConfig newParent)
Sets the parent configuration- Parameters:
newParent
- The parent configuration, could be null- Returns:
- cascading self
-
resourceLoader
public ConductorConfig.Builder resourceLoader(Function<String,Reader> newResourceLoader)
Sets the resource reader- Parameters:
newResourceLoader
- The loader of resource- Returns:
- cascading self
-
sqlExceptionConvert
public <E extends RuntimeException> ConductorConfig.Builder sqlExceptionConvert(SQLExceptionConvert<E> newSqlExceptionConvert)
Sets the conversion forSQLException
.- Type Parameters:
E
- The type ofRuntimeException
to be the result exception- Parameters:
newSqlExceptionConvert
- The conversion forSQLException
- Returns:
- cascading self
-
operatorFactory
public ConductorConfig.Builder operatorFactory(OperatorFactory newOperatorFactory)
Sets operator factory.- Parameters:
newOperatorFactory
- The operator factory, could be null- Returns:
- cascading self
-
namedOperator
public ConductorConfig.Builder namedOperator(String name, DataGrainOperator operator)
Puts named operator- Parameters:
name
- The name of operator used to be fetchedoperator
- The target operator- Returns:
- cascading self
-
namedSupplier
public ConductorConfig.Builder namedSupplier(String name, Supplier<?> supplier)
Puts named supplier- Parameters:
name
- The name of operator used to be fetchedsupplier
- The supplier matching the name- Returns:
- cascading self
-
namedJdbcFunction
public ConductorConfig.Builder namedJdbcFunction(String name, JdbcFunction<? extends Connection,?> jdbcFunction)
Puts named JDBC function.- Parameters:
name
- The name of function used to be fetchedjdbcFunction
- The target function of JDBC- Returns:
- cascading self
-
namedDecorator
public ConductorConfig.Builder namedDecorator(String name, DataGrainDecorator decorator)
Puts named decorator.- Parameters:
name
- The name of decorator used to be fetcheddecorator
- target The decorator- Returns:
- cascading self
-
-