mirror of
https://github.com/apache/struts.git
synced 2026-08-07 23:57:03 +00:00
WW-4215 Allows constructor injection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user