aerogear-controller 1.0.1

org.jboss.aerogear.controller.router
Class EndpointInvoker

java.lang.Object
  extended by org.jboss.aerogear.controller.router.EndpointInvoker

public class EndpointInvoker
extends Object

EndpointInvoker is responsible for invoking target endpoint methods in AeroGear Controller.


Field Summary
private  javax.enterprise.inject.spi.BeanManager beanManager
           
private  ControllerFactory controllerFactory
           
 
Constructor Summary
EndpointInvoker(ControllerFactory controllerFactory, javax.enterprise.inject.spi.BeanManager beanManager)
           
 
Method Summary
private  Object getController(Route route)
           
 Object invoke(RouteContext routeContext, Object[] args)
          Invokes the target endpoint method for the passed-in RouteContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanManager

private final javax.enterprise.inject.spi.BeanManager beanManager

controllerFactory

private final ControllerFactory controllerFactory
Constructor Detail

EndpointInvoker

@Inject
public EndpointInvoker(ControllerFactory controllerFactory,
                              javax.enterprise.inject.spi.BeanManager beanManager)
Method Detail

invoke

public Object invoke(RouteContext routeContext,
                     Object[] args)
              throws Exception
Invokes the target endpoint method for the passed-in RouteContext.

Parameters:
routeContext - the RouteContext for route to be invoked.
args - the arguments for the route's target endpoint method.
Returns:
Object the result from invoking the endpoint method, if any.
Throws:
Exception - if an error occurs while invoking the target method.

getController

private Object getController(Route route)

aerogear-controller 1.0.1

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