Package org.camunda.bpm.engine
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getArtifact(java.lang.Class<T> clazz)
-