Convert yang-xpath-impl into a JPMS module 51/93151/7
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Oct 2020 17:51:42 +0000 (19:51 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 21 Oct 2020 12:42:01 +0000 (12:42 +0000)
commit7498bbf83619d87db25e54177cf014ba59738a6e
tree638848b003cc4bb5c3bf8042bc3314c33bdc1971
parenta7416511294ae189f9542f7e7e6b0dd643b2da6d
Convert yang-xpath-impl into a JPMS module

This is a bit more involved, as we are using a different
javax.inject and do not use osgi.cmpn but
org.osgi.service.component.annotations directly.

The latter results in a dependency on an automatic module, but
that is not really a problem as we never touch them at runtime.

Since we do not want to export out implementation directly, and
it still needs to be discoverable via reflection, we dedicate
org.opendaylight.yang.xpath.impl.di package for that purpose.
It will come in handy for other injection frameworks as well.

JIRA: YANGTOOLS-1145
Change-Id: Ie80b02eba551fa89c334f20484e386d808316ca3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-xpath-impl/pom.xml
yang/yang-xpath-impl/src/main/java/module-info.java [new file with mode: 0644]
yang/yang-xpath-impl/src/main/java/org/opendaylight/yangtools/yang/xpath/impl/AntlrXPathParserFactory.java
yang/yang-xpath-impl/src/main/java/org/opendaylight/yangtools/yang/xpath/impl/di/DefaultXPathParserFactory.java [new file with mode: 0644]
yang/yang-xpath-impl/src/main/java/org/opendaylight/yangtools/yang/xpath/impl/di/package-info.java [new file with mode: 0644]