Hi Ariel,

Il lunedì 16 giugno 2008 07:24:36 Ariel Constenla-Haile ha scritto:
> Hello Paolo,
>
> Paolo Mantovani escribió:
> > In practice, if I well understand Frank's answer, using
> > createWithArguments/AndContext/AndWhatever things it's not better than
> > simply doing:
> >
> > obj = CreateUNOService("service.name")
> > obj.initialize(Array(arg1, arg2, arg3))
> >
> > because this is what (more or less) currently happens behind the scene
>
> this simpler way will fail depending on how is the service implemented.
> For example if we test this on the
> com.sun.star.deployment.ui.PackageManagerDialog, with *this* new-style
> service, one can not *first* call createUnoService() and *then*
> initialize() passing to this last call the constructor's parameters,
> because, as shown in the example bellow, initialize() "fails" == the
> object returned by createUnoService() has no such method, as
> XInitialization is not implemented.
[....]

Ok now it's clear, I didn't catch this aspect of the problem.


> Anyway, we, API clients, shouldn't in theory get worried about how
> things are implemented, and rely instead only in the specification... And
> OOo Basic programmers should have a way to instantiate new style services
> at least as simple as createUnoService().

Yes, I hope hope that this issue will be fixed soon 

Thanks again for your patience :-)

ciao
Paolo M



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to