Language

The Free and Open Productivity Suite
Apache OpenOffice 4.1.8 released

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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
ProUNO - Service Manager and Component Context
FirstSteps - First Contact - Getting Started
ProUNO - Bridge - The Service Manager Component - Instantiation
ProUNO - Basic - Instantiating UNO Services
ProUNO - Java - Getting a Service Manager
AdvUNO - Implementing UNO Language Bindings - Overview of Language Bindings and Bridges - Bootstrapping
ProUNO - C++ - Establishing Interprocess Connections
ProUNO - UNO Interprocess Connections

Included Services - Summary
MultiServiceFactory

This is a derived MultiServiceFactory service.

Exported Interfaces - Summary
XComponent

Disposing of service manager. (details)

::com::sun::star::container::XSet

Management of service factories.

::com::sun::star::container::XContentEnumerationAccess

Enumeration of all service factories. (details)

::com::sun::star::beans::XPropertySet

Property access. (details)

Properties' Summary
::com::sun::star::uno::XComponentContext
DefaultContext
[ OPTIONAL ]
specifies the default component context to be used, if instanciating services via XMultiServiceFactory  
Included Services - Details
MultiServiceFactory
Description
This is a derived MultiServiceFactory service.
Exported Interfaces - Details
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
Usage Restrictions
optional
Description
Property access.
Properties' Details
DefaultContext
::com::sun::star::uno::XComponentContext DefaultContext;
Usage Restrictions
optional
Description
specifies the default component context to be used, if instanciating services via XMultiServiceFactory

 
Top of Page

Apache Events

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.