org.wamblee.cdi
Class CdiInjectorFactory

java.lang.Object
  extended by org.wamblee.cdi.CdiInjectorFactory
All Implemented Interfaces:
org.wamblee.inject.InjectorFactory

public class CdiInjectorFactory
extends java.lang.Object
implements org.wamblee.inject.InjectorFactory

Factory that creates CDI injectors. This class may be subclassed for testing to override the injectors that are returned.

Author:
Erik Brakkee

Constructor Summary
CdiInjectorFactory()
          Constructs the factory using a default bean manager.
CdiInjectorFactory(javax.enterprise.inject.spi.BeanManager aBeanManager)
          Constructs the factory using an explicit bean manager.
 
Method Summary
 org.wamblee.inject.Injector create(java.lang.Class aClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CdiInjectorFactory

public CdiInjectorFactory()
Constructs the factory using a default bean manager.

Throws:
java.lang.IllegalArgumentException - If bean manager is null.

CdiInjectorFactory

public CdiInjectorFactory(javax.enterprise.inject.spi.BeanManager aBeanManager)
Constructs the factory using an explicit bean manager.

Parameters:
aBeanManager -
Throws:
java.lang.IllegalArgumentException - If bean manager is null.
Method Detail

create

public org.wamblee.inject.Injector create(java.lang.Class aClass)
Specified by:
create in interface org.wamblee.inject.InjectorFactory


Copyright © 2022. All Rights Reserved.