Re: Java Project API/SPI

Svata Dedic <[email protected]> 06 Aug 2003 12:44:08 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
On Wed, 2003-08-06 at 10:44, Jan Pokorsky wrote:
> Svata Dedic wrote:
> > Vitezslav Stejskal wrote:
> > 
> >>
> >>
> >> Jan Pokorsky wrote:
> >>
> >>> First of all I do not think the main purpose of JavaProject is to be 
> >>> implemented by providers but to be consumed by clients. Actually 
> >>> there is just one provider. So why clutter the class with methods 
> >>> useful only for  providers. Maybe we could hide the spi part at all 
> >>> till some one really needs to plug own implementation in. 
> >>
> >>
> >>
> >> I would vote for this.
> >>
> > Hmm... does that mean that the entire JavaProject impl. will reside in 
> > the API module ?
> > 
> 
> No, the impl. has been already there since the java module split.
> 
> The question remains if there are any real requirements justifying 
> necessity of this spi. I have had none yet. I would appreciate if you 
> could provide some.
> 

I think we had situation similar to this (an API, with only
one supposed/allowed implementation) in the past with openide stuff and
it took quite long time and many versions to separate APIs from their implementations.

Re. default implementation of APIs in the API module - I suffered just
enough with maintaining org.openide.src content, so I became wary of
API modules that implement the functionality themselves.

However, suit yourself.

-Svata