aerogear-controller 1.0.1

org.jboss.aerogear.controller.router
Class DefaultRouteProcessor

java.lang.Object
  extended by 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.


Field Summary
private  Map<String,Consumer> consumers
           
private  EndpointInvoker endpointInvoker
           
 
Constructor Summary
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)
           
 
Method Summary
 InvocationResult process(RouteContext routeContext)
          Handles the actual invocation of the target or the passed-in Route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpointInvoker

private EndpointInvoker endpointInvoker

consumers

private final Map<String,Consumer> consumers
Constructor Detail

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)
Method Detail

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.

aerogear-controller 1.0.1

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.