Class ContextGeneratorFactory
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.generator.core.context.ContextGeneratorFactory
-
public class ContextGeneratorFactory extends Object
The Context Generator configuration factory.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description ContextGeneratorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ContextGenerator>getContextGenerator(GeneratorType generatorType)get context generatorvoidregisterContextGenerator(ContextGenerator contextGenerator)Register context generator.
-
-
-
Method Detail
-
registerContextGenerator
public void registerContextGenerator(ContextGenerator contextGenerator)
Register context generator.- Parameters:
contextGenerator- the context generator
-
getContextGenerator
public Optional<ContextGenerator> getContextGenerator(GeneratorType generatorType)
get context generator- Parameters:
generatorType- the generator type- Returns:
- the optional ContextGenerator
-
-