Package org.operaton.bpm.model.dmn
Interface DmnFactory
- All Known Implementing Classes:
DefaultDmnFactory
public interface DmnFactory
The factory for creating
Dmn instances.
Implementations of this interface are discovered using Java's ServiceLoader mechanism.
To provide a custom implementation, create a class that implements DmnFactory and
register it by adding its fully qualified class name to a file named
META-INF/services/org.operaton.bpm.model.dmn.DmnFactory in your JAR.
Example:
// In your implementation JAR: // File: META-INF/services/org.operaton.bpm.model.dmn.DmnFactory com.example.MyCustomDmnFactory
To obtain an instance, use:
ServiceLoader<DmnFactory> loader = ServiceLoader.load(DmnFactory.class);
for (DmnFactory factory : loader) {
Dmn dmn = factory.newInstance();
// use dmn
}
-
Method Summary
-
Method Details
-
newInstance
Dmn newInstance()
-