Re: Changes in the JavaPlatform API
Martin Ryzl <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Organization | Sun Microsystems, Inc. |
| Message-ID | <[email protected]> |
Vitezslav Stejskal wrote: > > > Svata Dedic wrote: > >>> instead of introducing special class which is empty anyway and serves >>> for identification purposes only. It's not clear to me who will use >>> this identification anyway - PlatformService implementations, the >>> project when referencing used paltform, ...? >>> >> N/A from me. I remember that Martin requested such thing. > > > Could you write his usecase here or better point me to some doc > collecting requirements (usecases) for paltform API. (I found only this > overview document > http://java.netbeans.org/Proposals/projects/platform1.html) what we really need is to identify individual plaforms. I mean J2SE platform is identified by vendor, major version, minor version. J2ME uses configuration and profiles. As those informations are different for different types of platforms it makes sense to move them to subclasses. And unless we want to test instances of JP using instanceof we should have a special attribute. Regarding your question - for some types of projects it makes sense to limit set of possible plaftorms. For example, a MIDP project may require at least J2ME, CLDC-1.0 and MIDP-1.0, assigning of J2SE platform to such project would cause compiler errors. -Martin > > Thanks, > -vita > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- _______________________________________________________ Martin Ryzl <[email protected]> Software Engineer, Forte Tools Sun Microsystems, Inc., Software Platforms and Products Phone +420 233 009 130 (x49130), Fax +420 233 009 299