org.camunda.bpm.engine
Interface ArtifactFactory

All Known Implementing Classes:
DefaultArtifactFactory

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
<T> T
getArtifact(Class<T> clazz)
           
 

Method Detail

getArtifact

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


Copyright © 2017 camunda services GmbH. All rights reserved.