import org.wamblee.inject.InjectorFactory;
/**
- * Factory that creates CDI injectors. In case no beanmanager is found then
- * injectors will do nothing. This class may be subclassed for testing to
- * override the injectors that are returned.
+ * Factory that creates CDI injectors. This class may be subclassed for testing
+ * to override the injectors that are returned.
*
* @author Erik Brakkee
*/
.getLogger(CdiInjectorFactory.class.getName());
private BeanManager beanManager;
-
+
/**
- * Constructs the factory using a default bean manager.
+ * Constructs the factory using a default bean manager.
*
- * @throws IllegalArgumentException If bean manager is null.
+ * @throws IllegalArgumentException
+ * If bean manager is null.
*/
public CdiInjectorFactory() {
this(BeanManagerLookup.lookup());
* Constructs the factory using an explicit bean manager.
*
* @param aBeanManager
- * @throws IllegalArgumentException If bean manager is null.
+ * @throws IllegalArgumentException
+ * If bean manager is null.
*/
public CdiInjectorFactory(BeanManager aBeanManager) {
- if ( aBeanManager == null ) {
+ if (aBeanManager == null) {
throw new IllegalArgumentException("Bean manager is null");
}
beanManager = aBeanManager;