Class BshDataRouter

java.lang.Object
org.jumpmind.symmetric.route.AbstractDataRouter
org.jumpmind.symmetric.route.BshDataRouter
All Implemented Interfaces:
IBuiltInExtensionPoint, IExtensionPoint, IDataRouter

public class BshDataRouter extends AbstractDataRouter implements IBuiltInExtensionPoint
This data router is invoked when the router_type is 'bsh'. The router_expression is always a bean shell expression. See the bean shell site for information about the capabilities of the bean shell scripting language.

Bound to the interpreter are the names of both the current and old column values. They can be used in the expression. They should always be referenced using upper case. Also bound to the interpreter is a Collection of targetNodes. The script is expected to add the the list of target nodes a list of the node_ids that should be routed to.