Uploaded image for project: 'Unitils'
  1. Unitils
  2. UNI-241

@InjectIntoByType only into objects with this type

    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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elinow Siarhei Khamenka
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: