public class DefaultRouteProcessor extends Object implements RouteProcessor
RouteProcessor that is the target of a processing chain of CDI decorators.
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Consumer> |
consumers |
private EndpointInvoker |
endpointInvoker |
| Constructor and Description |
|---|
DefaultRouteProcessor()
No-args constructor required by CDI so that it can generate proxies for instances of this class.
|
DefaultRouteProcessor(javax.enterprise.inject.Instance<Consumer> consumers,
EndpointInvoker endpointInvoker) |
| Modifier and Type | Method and Description |
|---|---|
InvocationResult |
process(RouteContext routeContext)
Handles the actual invocation of the target or the passed-in
Route. |
private EndpointInvoker endpointInvoker
public DefaultRouteProcessor()
@Inject public DefaultRouteProcessor(javax.enterprise.inject.Instance<Consumer> consumers, EndpointInvoker endpointInvoker)
public InvocationResult process(RouteContext routeContext) throws Exception
RouteProcessorRoute.process in interface RouteProcessorrouteContext - the RouteContext for the current request.Exception - if processing of the route causes an exception.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.