aerogear-controller 1.0.1

org.jboss.aerogear.controller.router
Class ControllerFactory

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

public class ControllerFactory
extends Object

ControllerFactory is a factory for target endpoint classes in AeroGear.


Constructor Summary
ControllerFactory()
           
 
Method Summary
 Object createController(Class<?> targetClass, javax.enterprise.inject.spi.BeanManager beanManager)
          Creates an instance of the passed-in type by delegating to CDI (beanManager).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerFactory

public ControllerFactory()
Method Detail

createController

public Object createController(Class<?> targetClass,
                               javax.enterprise.inject.spi.BeanManager beanManager)
Creates an instance of the passed-in type by delegating to CDI (beanManager).

Parameters:
targetClass - the type of the target endpoint class.
beanManager - the CDI bean manager that should be used to look up the type.
Returns:
Object an instance of the target class.

aerogear-controller 1.0.1

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