/** * A convenience method of creating a router classifier based on a plain old * Java Object. The object provided must have precisely one public method * that either has the <code>@Classifier</code> annotation or accepts a single argument * and outputs a String. This will be used to create an input classifier for * the router component. * * @param delegate the delegate object used to create a router classifier */ public void setRouterDelegate(Object delegate) { this.router = new ClassifierAdapter<C,String>(delegate); }
/** * A convenience method of creating a router classifier based on a plain old * Java Object. The object provided must have precisely one public method * that either has the <code>@Classifier</code> annotation or accepts a single argument * and outputs a String. This will be used to create an input classifier for * the router component. * * @param delegate the delegate object used to create a router classifier */ public void setRouterDelegate(Object delegate) { this.router = new ClassifierAdapter<C,String>(delegate); }