Hi Stephan,
thanks for the hint. I tried it and it seems to be easier, less code and to 
work better than the other way.
I did read the link to the singeltons already in the documentation before, but 
I did not know how to instantiate a singleton.
Bye,
Arnulf

Am Donnerstag, 7. Juli 2005 18:04 schrieb Stephan Bergmann:
> Arnulf Wiedemann wrote:
> > Hi Stephan,
> > I used com.sun.star.lang.XMultiComponentFactory to get the
> > com.sun.star.reflection.TypeDescriptionManager service, which in turn I
> > get via getServiceManager() from the object delivered by
> > UnoResolver.resolve() call.
> > I don't know, if that is the correct/best way.
>
> Try the singleton (see below) instead.  (You can obtain the singleton
> from the component context via XComponentContext.getValueByName.)
>
> -Stephan
>
> > Bye,
> > Arnulf
>
> [...]
>
> >>You did not tell how you obtained a UNO object that implements
> >>XTypeDescriptionEnumerationAccess.  Did you use the
> >>com.sun.star.reflection.TypeDescriptionManager service obtainable as a
> >>singleton
> >>("/singletons/com.sun.star.reflection.theTypeDescriptionManager") at the
> >>component context?  See the UNOIDL documentation of
> >>com.sun.star.reflection.TypeDescriptionManager.
> >>
> >>-Stephan
>
> [...]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to