Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-632

CDI references are not injected if the service is not contained in the project or is not referenced by another service

    XMLWordPrintable

Details

    Description

      This prohibits services from being referenced by non-SwitchYard code.

      Any @Reference within a project should cause a component to be generated within the switchyard.xml file which defines the reference.

      In addition to the above, a test case should be added to ensure the reference is resolved even when no other CDI services exist. For example:
      1. Create a Camel or Rule service.
      2. Create a Java class that references the service.
      3. Verify that the reference is injected correctly.

      Attachments

        Activity

          People

            kbabo1@redhat.com Keith Babo (Inactive)
            rcernich1 Rob Cernich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: