Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.3
-
Fix Version/s: None
-
Component/s: inject
-
Labels:None
Description
Is it possible to change behavior of @InjectIntoByType annotation to silent injection skip instead of raising exceptions when no field of such type is found ?
I got a few tested objects in tests: DAOs and others. I want to inject entity manager for all DAOs by type and inject DAOs into other class of objects, but without EntityManager injection into them. Currently I got exception because there's no appropriate field for EntityManager injection.
I got a few tested objects in tests: DAOs and others. I want to inject entity manager for all DAOs by type and inject DAOs into other class of objects, but without EntityManager injection into them. Currently I got exception because there's no appropriate field for EntityManager injection.