public class PoolGenerator extends AbstractCodeGenerator implements MultiModuleGenerator
MULE_CONTEXT_FIELD_NAME
context
Constructor and Description |
---|
PoolGenerator() |
Modifier and Type | Method and Description |
---|---|
List<Product> |
consumes() |
void |
generate(List<Module> modules)
As we don't want to generate as many pools/caches per types of connectors (all interfaces are the same) the generated type of the object
is being created (arbitrarily) in the package of the first parametrized module, that's why we are using modules.get(0).
|
List<Module> |
processableModules(List<Module> modules) |
List<Product> |
produces() |
boolean |
shouldGenerate(List<Module> modules) |
generateLoggerField, ref, ref, ref, ref
ctx, setCtx
public boolean shouldGenerate(List<Module> modules)
shouldGenerate
in interface MultiModuleGenerator
public List<Module> processableModules(List<Module> modules)
processableModules
in interface MultiModuleGenerator
public void generate(List<Module> modules) throws GenerationException
generate
in interface MultiModuleGenerator
modules
- GenerationException
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.