org.jboss.aerogear.controller.router
Class EndpointInvoker
java.lang.Object
org.jboss.aerogear.controller.router.EndpointInvoker
public class EndpointInvoker
- extends Object
EndpointInvoker is responsible for invoking target endpoint methods in AeroGear Controller.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanManager
private final javax.enterprise.inject.spi.BeanManager beanManager
controllerFactory
private final ControllerFactory controllerFactory
EndpointInvoker
@Inject
public EndpointInvoker(ControllerFactory controllerFactory,
javax.enterprise.inject.spi.BeanManager beanManager)
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)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.