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