Camel
  1. Camel
  2. CAMEL-5145

Support cdi annotations in beans / camel-cdi refactor.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0
    • Component/s: None
    • Labels:
    • Estimated Complexity:
      Unknown

      Description

      Currently camel-cdi supports lookups by name. If user would like to use CDI-annotated class then he will not get injections done. During implementation of this feature I've done some more changes:
      1. Refactor test classes to rely on deltaspike container API. It allows to run tests with Open WebBeans (by default) or JBoss Weld (optional). There is no direct dependency to any implementation of CDI. Only public interfaces. Also I've removed long assert from test case and put equal check to test POJO.
      2. Remove BeanProvider and BeanManagerProvider, as they are already implemented in deltaspike-core (which is independent from CDI implementation)
      3. Implement CdiInjector.

      There is a issue DELTASPIKE-151 created by me today to support also Map as result of lookup which needs to be applied. If it will be not included then I'll attach another patch which will implement necessary code in camel-cdi.

      1. CAMEL-5145-5.patch
        3 kB
        Łukasz Dywicki
      2. CAMEL-5145-3.diff
        0.6 kB
        Łukasz Dywicki
      3. CAMEL-5145-2.diff
        44 kB
        Łukasz Dywicki
      4. CAMEL-5145.diff
        44 kB
        Łukasz Dywicki

        Issue Links

          Activity

            People

            • Assignee:
              Łukasz Dywicki
              Reporter:
              Łukasz Dywicki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development