Interface CmmnFactory

All Known Implementing Classes:
DefaultCmmnFactory

public interface CmmnFactory
The factory for creating Cmmn instances.

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

Example:

 // In your implementation JAR:
 // File: META-INF/services/org.operaton.bpm.model.cmmn.CmmnFactory
 com.example.MyCustomCmmnFactory
 

To obtain an instance, use:

 ServiceLoader<CmmnFactory> loader = ServiceLoader.load(CmmnFactory.class);
 for (CmmnFactory factory : loader) {
   Cmmn cmmn = factory.newInstance();
   // use cmmn
 }
 

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • newInstance

      Cmmn newInstance()