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 Detail

      • getArtifact

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