X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fcdi%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fcdi%2FCdiInjectorFactory.java;h=a4e575aa7f8b7bee581808a737948df1dc6e7d6b;hb=5e450310ba3c3e2dda08313e8f1b7bf96382bd24;hp=de13ef54df162641c6552350a1508e25cef209ce;hpb=9ed4408d10a124990e1b9cc6697872ee96c00c1d;p=utils diff --git a/support/cdi/src/main/java/org/wamblee/cdi/CdiInjectorFactory.java b/support/cdi/src/main/java/org/wamblee/cdi/CdiInjectorFactory.java index de13ef54..a4e575aa 100644 --- a/support/cdi/src/main/java/org/wamblee/cdi/CdiInjectorFactory.java +++ b/support/cdi/src/main/java/org/wamblee/cdi/CdiInjectorFactory.java @@ -23,8 +23,8 @@ import org.wamblee.inject.Injector; import org.wamblee.inject.InjectorFactory; /** - * Factory that creates CDI injectors. 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 */ @@ -34,11 +34,12 @@ public class CdiInjectorFactory implements InjectorFactory { .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()); @@ -48,10 +49,11 @@ public class CdiInjectorFactory implements InjectorFactory { * 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;