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