Hi Liyuan, the implementation can be found in the "stoc" module but you should not depend on the implementation details anywhere. The only thing which is specified is that createInstance returns a new instance of an requested service implementation object. The additional search for an implementation name for example is an impl. detail and can be change. And last but not least i recommend to use or to work with the XMultiComponentFactory instead of the XMultiServiceFactory. It's the newer interface and it should be used in new implementations.
Juergen Liyuan(Internet) wrote: > Hi all > > In the interface com.sun.star.lang.XMultiServiceFactory, createInstance first > tries to find a service with this name. It this is not successful, it tries > to find an implementation with this name. If one of the two lookups is > successful, it instantiates the object and returns a XInterface reference to > it. > If a service is a oneinstance (or singleton) service, the servicemanager > instantiates it the first time it is requested, but keeps a hard reference to > it (the servicemanager owns the object). If it is requested again, the > service manager returns this reference. > Where can I find more information about the implemention of the service > factory of the servicemanager? > > Regards > Liyuan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
