use of org.apache.camel.InvokeOnHeader in project camel by apache.
the class HeaderSelectorProducer method doStart.
@Override
protected void doStart() throws Exception {
for (final Method method : target.getClass().getDeclaredMethods()) {
InvokeOnHeaders annotation = method.getAnnotation(InvokeOnHeaders.class);
if (annotation != null) {
for (InvokeOnHeader processor : annotation.value()) {
bind(processor, method);
}
} else {
bind(method.getAnnotation(InvokeOnHeader.class), method);
}
}
handlers = Collections.unmodifiableMap(handlers);
super.doStart();
}
Aggregations