ru.yandex.qatools.camelot.common.PluginMethodSplitStrategy Maven / Gradle / Ivy
package ru.yandex.qatools.camelot.common;
import org.apache.camel.Exchange;
import ru.yandex.qatools.camelot.api.annotations.Split;
import ru.yandex.qatools.camelot.config.PluginContext;
import java.util.List;
/**
* @author Ilya Sadykov (mailto: [email protected])
*/
public class PluginMethodSplitStrategy extends AbstractPluginMethodStrategy implements SplitStrategy {
public PluginMethodSplitStrategy(PluginContext pluginContext) {
super(pluginContext, Split.class);
}
@Override
public List split(Exchange exchange) {
return (List) dispatchEvent(exchange);
}
}