Re: Docs status (was Re: [Fwd: [projects-dev] Milestone 3 status update])
Svata Dedic <[email protected]> Sat, 17 May 2003 19:01:04 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Organization | CollabNet Hosting |
| Message-ID | <[email protected]> |
Ondrej Rypacek wrote: >> >> >>> If there was some OpenAPI-backed >>> Object getSomething(Object tag); >>> with a clearly defined contract between `tag' and the returned >>> value's type, I would prefer to use that call. We have not any, so we >>> invented ContentDescriptor. >>> > Is that a joke?! You didn't mean it, did you ? > :-( Sadly enough, that's how the apis are made > I am curious about a pattern that would allow to request a service from an object (node, DataObject, FileObject) that someone passes to your code from outside that would not look as a joke. One thing is to have factory methods on the service class something like Service get(Node|FileObject|DataObject place) but that has another problem - when a new place-type appears, you have to update the service interface, which seems as a similar joke to me. -Svata