Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIJO9-0003uL-BW for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2015 16:30:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIJO8-0002WD-Fk for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2015 16:30:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIJNd-0001uH-UE for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 16:29:57 +0000 Received: from smtprelay06.ispgateway.de ([80.67.18.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIJNT-0002Qp-Gw for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 16:29:56 +0000 Received: from [88.66.27.219] (helo=Zauselmaus) by smtprelay06.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIJNP-0005M1-Mb for pgsql-jdbc@postgresql.org; Thu, 23 Jul 2015 18:29:43 +0200 From: "Markus KARG" To: "'List'" References: In-Reply-To: Subject: Re: Public vs internal APIs Date: Thu, 23 Jul 2015 18:29:51 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <001801d0c564$cd15bde0$674139a0$@eu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdDFXPC4gN/fwWhSS1WBA6a3PQZU8AAB73VQ Content-Language: de X-AVK-Virus-Check: AVA 25.2465;479D603D X-AVK-Spam-Check: 1; str=0001.0A0C0201.55B11679.017C,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Actually I would be a friend of instead restructuring the package hierarchy= , as this is was it was invented for originally. ;-) -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.o= rg] On Behalf Of Vladimir Sitnikov Sent: Donnerstag, 23. Juli 2015 17:33 To: List Subject: [JDBC] Public vs internal APIs Hi, I'm looking into implementing java.sql.Struct in the jdbc driver, and it tu= rns out I do not like PGObject for various reasons. E.g. it cannot "append itself to a buffer", it ties decoding with PGObject = itself. I'm going to try another approach, however I would like to avoid leaking th= at API to the public API of the driver. Having said that, I wonder what if we add: @ExperimentalAPI, @PublicAPI, @I= nternalAPI kind of annotations, so we can clearly mark internal classes as,= well, internal so our clients would not accidentally depend on the interna= l classes? Java does not yet allow to define "published API" (see [1]), so it would be= nice to mark some APIs as internal. For instance it makes sense marking the following classes as @InternalAPI: org.postgresql.util.LruCache org.postgresql.core.Parser etc [1]: http://martinfowler.com/ieeeSoftware/published.pdf -- Regards, Vladimir Sitnikov --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc