WW-4215 Allows constructor injection

This commit is contained in:
Lukasz Lenart
2014-07-09 21:16:38 +02:00
parent 29bb41db3c
commit ecab1b2b89
@@ -198,4 +198,13 @@ public class CdiObjectFactory extends ObjectFactory {
protected CreationalContext buildNonContextualCreationalContext(BeanManager beanManager) {
return beanManager != null ? beanManager.createCreationalContext(null) : null;
}
/**
* Allow constructor injection
*/
@Override
public boolean isNoArgConstructorRequired() {
return false;
}
}