CacheRuleConfigurator.getDefaultInstance()
.configure(configuration);
// obtain the namespace rule set that this configuration
// will populate
NamespaceRuleSet ruleSet = configuration.getNamespaceRules(
Namespace.PIPELINE.getURI(), true);
// add the rule for the content adapter process
ruleSet.addRule("content", ContentRule.getDefaultInstance());
// add the rule for the transform process
ruleSet.addRule("transform",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new TransformAdapterProcess();
}
});
// add the rules for the URL to URLC process. This has two
// aliases. The former, which is the original name, is now
// deprecated as "DMS" is not a valid name in terms of
// Product Management naming.
// @todo later delete this deprecated rule when PM deems that it can be removed
ruleSet.addRule("convertImageURLToDMS",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new URLToURLCAdapterProcess();
}
});
ruleSet.addRule("convertImageURLToTranscoder",
new AbstractAddAdapterRule() {
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new URLToURLCAdapterProcess();
}
});
// add the rule for the convertElementCase process
ruleSet.addRule("convertElementCase",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new ElementCaseAdapterProcess();
}
});
// add the rule for the convertAbsoluteToRelativeURL process
ruleSet.addRule("convertAbsoluteToRelativeURL",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new AbsoluteToRelativeURLAdapterProcess();
}
});
// Add the rules for the try operation.
TryRuleConfigurator.getDefaultInstance()
.configure(configuration);
// add the rule for the evaluation process
ruleSet.addRule("evaluate", EvaluateRule.getDefaultInstance());
// add the debug rules
ruleSet.addRule("serialize",
SerializeRule.getDefaultInstance());
// add the for-each rule.
ruleSet.addRule("for-each", ForEachRule.getDefaultInstance());
// add the rule for value element.
ruleSet.addRule("value-of", ValueOfRule.getDefaultInstance());
// Add the rules for DISelect operations.
DIRulesRegisterer.getDefaultInstance().register(configuration);
}
};