Difference between revisions of "Zh/Documentation/DevGuide/WritingUNO/Storing the Service Manager for Further Use"
From Apache OpenOffice Wiki
< Zh | Documentation
m (New page: {{Documentation/DevGuide/WritingUNOTOC/Zh |WritingUNO2c=block |ShowPrevNext=block |PrevPage=Zh/Documentation/DevGuide/WritingUNO/Implementing without Helpers |NextPage=Zh/Documentation/Dev...) |
(No difference)
|
Latest revision as of 08:32, 28 July 2008
组件通常在办公软件进程中运行,因此不必明确地创建进程间通道。组件不必创建服务管理器,因为它将在调用 createInstance()
或 createInstanceWithContext()
期间由服务管理器提供给实现的单个工厂。单个工厂将接收 XComponentContext
或 XMultiServiceFactory
,并将其传送到服务实现的相应构造函数。实现将在 com.sun.star.uno.XComponentContext 接口使用 getServiceManager()
从组件的上下文获取服务管理器。
Content on this page is licensed under the Public Documentation License (PDL). |