Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2392

create an ArtifactFactory SPI

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.0, 7.2.0-alpha4
    • Component/s: engine
    • Labels:

      Description

      Currently all class: JavaDelegates will be created via Class.newInstance.
      But when using CDI or Spring we might use managed beans instead new instances.

      By introducing an AtrifactFactory SPI which has a method to getInstance and destroyInstance we can switch out the default behaviour for utilizing the BeanManager if someone uses the cdi-engine and the BeanFactory in the Spring specific implementation.

      Both impls might fall back to newInstance if there is no managed bean for this class.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              meyer Daniel Meyer
              Reporter:
              struberg Mark Struberg
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: