Overview | Module | Use | Devguide | Index

Included Services | Exported Interfaces | Properties' Summary | Properties' Details

:: com :: sun :: star :: lang ::
service ServiceManager
Description Provides a collection of implementations for services. This is a singleton you commonly find in your component context under key `/singletons/com.sun.star.lang.theServiceManager` . The factories are accessed with a service name. It is possible to access the factories with their implementation names, but you should avoid this. Service factories added via ::com::sun::star::container::XSet should support the following interfaces: XServiceInfo supported interfaces/ implementation name XSingleComponentFactory (optional) is used to create instances of the implementation. XComponent (optional) The service manager calls the method XComponent::dispose on the factory when going down (i.e. it is commonly disposed by the component context). See also ::com::sun::star::uno::XComponentContext Developers Guide 5.2.1 Advanced UNO - Language Bindings - Implementing UNO Language Bindings - Overview of Language Bindings and Bridges - Bootstrapping 2.3.4 First Steps - Getting Started - First Connection - Getting Connected 3.3.1 Professional UNO - UNO Concepts - UNO Interprocess Connections 3.3.2 Professional UNO - UNO Concepts - Service Manager and Component Context 3.4.1 Professional UNO - UNO Language Bindings - Java Language Binding - Getting a Service Manager 3.4.2 Professional UNO - UNO Language Bindings - UNO C++ Binding - Establishing Interprocess Connections 3.4.3 Professional UNO - UNO Language Bindings - OpenOffice.org Basic - Handling UNO Objects - Instantiating UNO Services 3.4.4 Professional UNO - UNO Language Bindings - Automation Bridge - The Service Manager Component - Instantiation

Included Services
MultiServiceFactory | Description This is a derived MultiServiceFactory service.

Exported Interfaces
XComponent | Description Disposing of service manager. The component context disposes its service manager singleton when going down (i.e. when the component context is disposed).
::com::sun::star::container::XSet | Description Management of service factories.
::com::sun::star::container::XContentEnumerationAccess | Description Enumeration of all service factories. It is possible to enumerate all implementations that support the service specified with the argument of the ::com::sun::star::container::XContentEnumerationAccess::createContentEnumeration method. The enumerator commonly returns XSingleComponentFactory interfaces.
::com::sun::star::beans::XPropertySet | [ OPTIONAL ] Description Property access.

Properties' Summary
DefaultContext | [ OPTIONAL ] specifies the default component context to be used, if instanciating services via XMultiServiceFactory

Properties' Details
DefaultContext
::com::sun::star::uno::XComponentContext DefaultContext; [ OPTIONAL ] Description specifies the default component context to be used, if instanciating services via XMultiServiceFactory

Top of Page

Copyright © 2003 Sun Microsystems, Inc.