// add the integration specific rules
// obtain the namespace rule set that this configuration
// will populate
NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
INTEGRATION.getURI(), true);
// add the rule for the variableDeclaration adapter process
ruleSet.addRule("variableDeclaration",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess
createAdapterProcess(DynamicProcess dynamicProcess) {
return new
VariableDeclarationAdapterProcess();
}
});
// add the rule for the variableScope adapter process
ruleSet.addRule("variableScope",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess
createAdapterProcess(DynamicProcess dynamicProcess) {
return new
VariableScopeAdapterProcess();
}
});
// add the rule for the counter adapter process
ruleSet.addRule("counter",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess
createAdapterProcess(DynamicProcess dynamicProcess) {
return new CounterAdapterProcess(
TestPipelineFactory.this);
}
});
ruleSet.addRule("reenter", new ReenterRule());
ruleSet.addRule("alternate-complexity", new AlternateComplexityRule());
// add the generate error rule
ruleSet.addRule("generateError", new GenerateErrorRule());
// add the FailOnExecute rule
ruleSet.addRule("failOnExecute", new FailOnExecuteRule());
}
};
}