Interface BpmnFactory

All Known Implementing Classes:
DefaultBpmnFactory

public interface BpmnFactory
The factory for creating Bpmn instances.

Implementations of this interface are discovered using Java's ServiceLoader mechanism. To provide a custom implementation, create a class that implements BpmnFactory and register it by adding its fully qualified class name to a file named META-INF/services/org.operaton.bpm.model.bpmn.BpmnFactory in your JAR.

Example:

 // In your implementation JAR:
 // File: META-INF/services/org.operaton.bpm.model.bpmn.BpmnFactory
 com.example.MyCustomBpmnFactory
 

To obtain an instance, use:

 ServiceLoader<BpmnFactory> loader = ServiceLoader.load(BpmnFactory.class);
 for (BpmnFactory factory : loader) {
   Bpmn bpmn = factory.newInstance();
   // use bpmn
 }
 

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • newInstance

      Bpmn newInstance()