The root object for connections to OpenOffice.org (and to any UNO application)
the service manager. The root object serves as the entry point for every UNO
application and is passed to every UNO component during instantiation.
用来链接到OO的源对象是service manager,这个对象是任何UNO应用程序的入口,并且任何一个UNO对象都可以访问到它。
The com.sun.star.lang.ServiceManager is the main factory in every UNO
application. It instantiates services by their service name, to enumerate all
implementations of a certain service, and to add or remove factories for a
certain service at runtime. The service manager is passed to every UNO
component during instantiation.
com.sun.star.lang.ServiceManager是任何UNO程序的主工厂,它根据服务名来实例化services,枚举一个服务所实现的interface,在运行时来追加或者移除某个服务的
工厂类。在每个UNO组件实例化的过程中service manager都会被传入。