[YANGTOOLS-525] Create facade for new yang statement parser Created: 06/Oct/15 Updated: 10/Apr/22 Resolved: 26/Dec/17 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.0 |
| Type: | Bug | ||
| Reporter: | Martin Ciglan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4423 |
| Description |
|
We need a facade for YANG parser in order to hide actual implementation and complexity of yang parser for other projects using it. |
| Comments |
| Comment by Robert Varga [ 21/Oct/15 ] |
|
I think it would be enough to create a Factory interface and use SchemaLoader/OSGi activator to publish it along with providing a singleton instance. Tests which want to bind to a particular instance can use the singleton directly, tests which do not care would use the SchemaLoader (and get an implementation injected via a <scope>test</scope> dependency in their pom.xml). |
| Comment by Robert Varga [ 26/Dec/17 ] |
|
yang-parser-api has been defined in Iab444bd1698273c30ac37b8d3ea577ae35db71e7 |