Resolution of an interface parser (Java, WSDL, ESB) currently relies on a static if/else block in Deployment.java:
https://github.com/jboss-switchyard/core/blob/master/deploy/base/src/main/java/org/switchyard/deploy/internal/Deployment.java#L403
This has two implications:
1) Any time we add support for a new interface type, the deployer needs to be touched as well.
2) Users cannot add their own interface types without hacking the deployer code.
Investigate the use of a dynamic facility (e.g. ServiceLoader) for resolving the set of interface parsers available to the deployer.
|