Re: stereotype service (was: underlying politics)
- From: Michael Hoennig "(mi)" <mi sun com>
- To: "gnome-components-list gnome org" <gnome-components-list gnome org>
- Subject: Re: stereotype service (was: underlying politics)
- Date: Mon, 23 Oct 2000 06:41:03 GMT
> > > I thought a service is a set of interfaces and services. You
> > > can do the same things with multiple inheritance. I
> > > simply cant see the big advantage of your service definition.
> >
> > No, you cannot call methods on it directly. That would be a problem
> > because very often "optional" makes a lot of sense. You cannot specify
> > all combinations of interfaces which might make sense for a text
> > document. But you can set up a list which are necessary and which are
> > optional.
> >
> > So, we would need "optional inheritance". Additionally a service
> > specifies properties which are not directly accessible as attributes but
> > through specialized interfaces like com::sun::star::beans:XPropertySet.
>
> We can use the bonobo query_interface() for that special purpose.
Sorry, for my late answer. I had no Internet access this weekend,
reinstalled my private computer ;-)
That's what we are doing! Our com::sun::star::uno::XInterface looks
almost identical to BONOBOs Unknown.
The only point is, the service specifies WHICH interfaces are mandatory
and which are optional for a certain purpose. Additionally it's possible
to create objects using the service name, yes, that is like a stored
BONOBO query.
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]