org.jboss.aerogear.controller.router
Class ControllerFactory
java.lang.Object
org.jboss.aerogear.controller.router.ControllerFactory
public class ControllerFactory
- extends Object
ControllerFactory is a factory for target endpoint classes in AeroGear.
|
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 |
ControllerFactory
public ControllerFactory()
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.
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.