From: Markus KARG <markus@headcrashing.eu>
To: 'List' <pgsql-jdbc@postgresql.org>
Subject: Re: Public vs internal APIs
Date: Thu, 23 Jul 2015 18:51:09 +0200
Message-ID: <002901d0c567$c6f9fe00$54edfa00$@eu> (raw)
In-Reply-To: <CAB=Je-EELAJfmyo0uCwXewLhvqgg216Xs72R4YxtPqeyU3o-Yw@mail.gmail.com>
References: <CAB=Je-Ha1mDY5Yzk035zEEQGFOTcMN71Gtpdo8CqjYfMAFJKRQ@mail.gmail.com>
<001801d0c564$cd15bde0$674139a0$@eu>
<CAB=Je-EELAJfmyo0uCwXewLhvqgg216Xs72R4YxtPqeyU3o-Yw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Actually I would go with a really flat structure, so we can simply use "default" and "public" visibility of classes to distinguish between API and implementation. If more structure is wanted, we could use "org.postgresql" vs. "org.postgresql.internal" to make it more clear which classes are private and which are published.
Unfortunately Java has no "friends" declaration. :-(
-----Original Message-----
From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com]
Sent: Donnerstag, 23. Juli 2015 18:35
To: Markus KARG
Cc: List
Subject: Re: [JDBC] Public vs internal APIs
> instead restructuring the package hierarchy, as this is was it was invented for originally.
package-private is not enough.
Java9 will have modules for that, however we would have to live with
java8 for a while.
Which package would you suggest for org.postgresql.util.LruCache?
Vladimir
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: markus@headcrashing.eu
Subject: Re: Public vs internal APIs
In-Reply-To: <002901d0c567$c6f9fe00$54edfa00$@eu>
References: <CAB=Je-Ha1mDY5Yzk035zEEQGFOTcMN71Gtpdo8CqjYfMAFJKRQ@mail.gmail.com> <001801d0c564$cd15bde0$674139a0$@eu> <CAB=Je-EELAJfmyo0uCwXewLhvqgg216Xs72R4YxtPqeyU3o-Yw@mail.gmail.com> <002901d0c567$c6f9fe00$54edfa00$@eu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox