[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
Platform: 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

Generated at Wed Feb 07 20:53:30 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.