The use of annotations is an interesting idea. I had not considered that.
I'd also want the javadocs to accurately reflect this distinction. Are
annotations available to doclets? I am thinking perhaps not, based on
my knowledge of @Deprecated
On 05/17/2011 09:45 AM, Hardy Ferentschik wrote:
sorry for reviving this thread so late, but I only now gained more
this package splitting.
Personally I don't like it too much. I partly understand the reason, but
I am not
sure if this religious package naming makes sense.
As already mentioned in this thread, there is the issue of package
Secondly, it is often no clear cut between spi/api/internal and lastly I
it now much harder to have a mental picture of the structural
the software. All I see in the package explorer are spis, apis and
Don't get me wrong, some of the package changes are sensible, but should
this split on each single level?
An idea which came up was whether we couldn't use an annotation
another one ;-). We could define custom annotations (@SPI, @PublicApi)
annotation processor could pick up on and create the correct META-INF or
whatever is needed.
On Mon, 28 Mar 2011 19:48:02 +0200, Steve Ebersole <steve(a)hibernate.org>
> On Monday, March 28, 2011, at 12:36 pm, Emmanuel Bernard wrote:
>> I'd say I like the current approach better than using spi / internal
>> as top
>> The only think I would change is rename internal to some shorter
>> - impl
>> - private
>> - hidden
>> - ?
>> Another discussion we had on HSearch is whether or not use internal
>> on the
>> package name that is always bound to be private. For example say
>> org.hibernate.search.util only contains private stuff, should we have
>> org.hibernate.search.util.internal or can we keep
>> My opinion is that we should be consistent and use
> Totally agree, especially if you start thinking about extracting these
> separate jars for osgi. You need some kind of consistency in order to
> identify what goes where without having to individually identify
> class, which of course noone wants to mainatain.
Steve Ebersole <steve(a)hibernate.org>