Qualified exports/opens and services

Nicolai Parlog nipa at codefx.org
Thu Jan 4 14:18:33 UTC 2018


 Hi!

First of all, happy new year, everybody.

I got a question regarding qualified exports/opens and services. I
thought I once read a proposal that a service consumer that some
packages are exported or opened to could "forward" those privileges to
the service providers.

As an example, think about JPA and Hibernate (and ignore the ludicrous
module names):

* app code might `opens com.example.dto to jpa`
* when app calls `EntityManager`, it locates Hibernate in module
  `hibernate` as JPA implementation
* `hibernate` can now reflect over `com.example.dto`

That feature doesn't exist, right?

 so long ... Nicolai



-- 

PGP Key:
    http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509

Web:
    http://codefx.org
        a blog about software development
    https://www.sitepoint.com/java
        high-quality Java/JVM content
    http://do-foss.de
        Free and Open Source Software for the City of Dortmund

Twitter:
    https://twitter.com/nipafx


More information about the jigsaw-dev mailing list