org.jboss.aerogear.controller.router
Class DefaultRouteProcessor
java.lang.Object
org.jboss.aerogear.controller.router.DefaultRouteProcessor
- All Implemented Interfaces:
- RouteProcessor
public class DefaultRouteProcessor
- extends Object
- implements RouteProcessor
Default implementation of RouteProcessor that is the target of a processing chain of CDI decorators.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endpointInvoker
private EndpointInvoker endpointInvoker
consumers
private final Map<String,Consumer> consumers
DefaultRouteProcessor
public DefaultRouteProcessor()
- No-args constructor required by CDI so that it can generate proxies for instances of this class.
DefaultRouteProcessor
@Inject
public DefaultRouteProcessor(javax.enterprise.inject.Instance<Consumer> consumers,
EndpointInvoker endpointInvoker)
process
public InvocationResult process(RouteContext routeContext)
throws Exception
- Description copied from interface:
RouteProcessor
- Handles the actual invocation of the target or the passed-in
Route.
- Specified by:
process in interface RouteProcessor
- Parameters:
routeContext - the RouteContext for the current request.
- Throws:
Exception - if processing of the route causes an exception.
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.