public class DefaultRouteProcessor extends Object implements RouteProcessor
RouteProcessor. This implementation uses Context and Dependency Injection (CDI) to
have various parts injected into it. OfRoutingModule which is described in more detail in the section below.
RoutingModule upon deployment, and itsRoutingModule.build() method will be called to assemble the routes configured for this application.AbstractRoutingModule is provided, please refer its javadoc for sample usage.| Modifier and Type | Field and Description |
|---|---|
private Map<String,Consumer> |
consumers |
private EndpointInvoker |
endpointInvoker |
| Constructor and Description |
|---|
DefaultRouteProcessor() |
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.