<html> <head> <title>Service ServiceManager</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="ServiceManager-xref.html" class="navimain">Use</a></td> <td class="navimain"><a href="#devmanual" class="navimain">Devguide</a></td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#ServicesSummary" class="navisub">Services' Summary</a></td> <td class="navisub"><a href="#InterfacesSummary" class="navisub">Interfaces' Summary</a></td> <td class="navisub"><a href="#PropertiesSummary" class="navisub">Properties' Summary</a></td> <td class="navisub"><a href="#ServicesDetails" class="navisub">Services' Details</a></td> <td class="navisub"><a href="#InterfacesDetails" class="navisub">Interfaces' Details</a></td> <td class="navisub"><a href="#PropertiesDetails" class="navisub">Properties' Details</a></td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">lang</a> :: </p> </td> </tr> <tr> <td class="title">service ServiceManager</td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>Provides a collection of implementations for services. This is a singleton you commonly find in your component context under key <code>/singletons/com.sun.star.lang.theServiceManager</code>. </dd> <dd><p> The factories are accessed with a service name. It is possible to access the factories with their implementation names, but you should avoid this. </p> <p>Service factories added via ::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XSet.html">XSet</a> should support the following interfaces: </p> <dl> <dt><a href="XServiceInfo.html">XServiceInfo</a></dt> <dd>supported interfaces/ implementation name</dd> <dt><a href="XSingleComponentFactory.html">XSingleComponentFactory</a>(optional)</dt> <dd>is used to create instances of the implementation.</dd> <dt><a href="XComponent.html">XComponent</a> (optional)</dt> <dd>The service manager calls the method <a href="XComponent.html">XComponent</a>::<a href="XComponent.html#dispose">dispose</a> on the factory when going down (i.e. it is commonly disposed by the component context).</dd> </dl> </dd> <dt><b/></dt> <dd/></dl> <a name="devmanual"> </a><dl> <dt><b>Developers Guide</b></dt> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Service_Manager_and_Component_Context">ProUNO - Service Manager and Component Context</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/First_Contact#Getting_Started">FirstSteps - First Contact - Getting Started</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Bridge/The_Service_Manager_Component#Instantiation">ProUNO - Bridge - The Service Manager Component - Instantiation</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Basic/Instantiating_UNO_Services">ProUNO - Basic - Instantiating UNO Services</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Getting_a_Service_Manager">ProUNO - Java - Getting a Service Manager</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/AdvUNO/Implementing_UNO_Language_Bindings#Bootstrapping">AdvUNO - Implementing UNO Language Bindings - Overview of Language Bindings and Bridges - Bootstrapping</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C++/Establishing_Interprocess_Connections">ProUNO - C++ - Establishing Interprocess Connections</a></dd> <dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/UNO_Interprocess_Connections">ProUNO - UNO Interprocess Connections</a></dd> </dl> </td> </tr> </table> <hr> <a name="ServicesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Included Services - Summary</td> </tr> <tr> <td class="imsum_left"><a href="MultiServiceFactory.html">MultiServiceFactory</a></td> <td class="imsum_right"><p>This is a derived MultiServiceFactory service. </p> </td> </tr> </table> <a name="InterfacesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Exported Interfaces - Summary</td> </tr> <tr> <td class="imsum_left"><a href="XComponent.html">XComponent</a></td> <td class="imsum_right"><p>Disposing of service manager. (<a href="#XComponent">details</a>)</p> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XSet.html">XSet</a></td> <td class="imsum_right"><p>Management of service factories. </p> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XContentEnumerationAccess.html">XContentEnumerationAccess</a></td> <td class="imsum_right"><p>Enumeration of all service factories. (<a href="#XContentEnumerationAccess">details</a>)</p> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertySet.html">XPropertySet</a></td> <td class="imsum_right"><p>Property access. (<a href="#XPropertySet">details</a>)</p> </td> </tr> </table> <a name="PropertiesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Properties' Summary</td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../uno/module-ix.html">uno</a>::<a href="../uno/XComponentContext.html">XComponentContext</a><br> <a href="#DefaultContext">DefaultContext</a></td> <td class="imsum_right"><b>[ OPTIONAL ]<br> </b>specifies the default component context to be used, if instanciating services via <a href="XMultiServiceFactory.html">XMultiServiceFactory</a> </td> </tr> </table> <a name="ServicesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Included Services - Details</td> </tr> <tr/> <tr> <td class="imdetail"><a name="MultiServiceFactory" class="membertitle"><a href="MultiServiceFactory.html">MultiServiceFactory</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt><b>Description</b></dt> <dd>This is a derived MultiServiceFactory service. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a name="InterfacesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Exported Interfaces - Details</td> </tr> <tr/> <tr> <td class="imdetail"><a name="XComponent" class="membertitle"><a href="XComponent.html">XComponent</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt><b>Description</b></dt> <dd>Disposing of service manager. </dd> <dd><p> The component context disposes its service manager singleton when going down (i.e. when the component context is disposed). </p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr/> <tr> <td class="imdetail"><a name="XSet" class="membertitle">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XSet.html">XSet</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt><b>Description</b></dt> <dd>Management of service factories. </dd> </dl> </td> </tr> </table> </td> </tr> <tr/> <tr> <td class="imdetail"><a name="XContentEnumerationAccess" class="membertitle">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XContentEnumerationAccess.html">XContentEnumerationAccess</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt><b>Description</b></dt> <dd>Enumeration of all service factories. </dd> <dd><p> It is possible to enumerate all implementations that support the service specified with the argument of the ::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XContentEnumerationAccess.html">XContentEnumerationAccess</a>::<a href="../container/XContentEnumerationAccess.html#createContentEnumeration">createContentEnumeration</a> method. The enumerator commonly returns <a href="XSingleComponentFactory.html">XSingleComponentFactory</a> interfaces. </p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr/> <tr> <td class="imdetail"><a name="XPropertySet" class="membertitle">::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertySet.html">XPropertySet</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt><b>Usage Restrictions</b></dt> <dd><i>optional</i></dd> <dt><b>Description</b></dt> <dd>Property access. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a name="PropertiesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Properties' Details</td> </tr> <tr> <td class="imdetail"><a name="DefaultContext" class="membertitle">DefaultContext</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>::com::sun::star::<a href="../uno/module-ix.html">uno</a>::<a href="../uno/XComponentContext.html">XComponentContext</a> <b>DefaultContext</b>;<hr> <dl> <dt><b>Usage Restrictions</b></dt> <dd><i>optional</i></dd> <dt><b>Description</b></dt> <dd>specifies the default component context to be used, if instanciating services via <a href="XMultiServiceFactory.html">XMultiServiceFactory</a> </dd> </dl> </td> </tr> </table> </td> </tr> </table> <br> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2009 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>