Interface ArtifactFactory

All Known Implementing Classes:
CdiArtifactFactory, DefaultArtifactFactory, SpringArtifactFactory

public interface ArtifactFactory
Create and destroy artifacts of a given class in a container specific way. This SPI hides differences between CDI, Spring, etc.
Samples:
     <camunda:taskListener class="org.mypackage.MyListener".../>
     or
     <serviceTask camunda:class=""org.mypackage.MyJavaDelegate".. />
 
The default implementation uses Class.newInstance to create artifacts. The CDI specific version utilizes the BeanManager to resolve the Contextual Instances.
Since:
7.2.0
Author:
Mark Struberg
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getArtifact(Class<T> clazz)
     
  • Method Details

    • getArtifact

      <T> T getArtifact(Class<T> clazz)
      Parameters:
      clazz - of the artifact to create
      Returns:
      the instance of the fullyQualifiedClassName