Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 4037

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<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="#IncludedServices" class="navisub">Included Services</a></td>
<td class="navisub"><a href="#ExportedInterfaces" class="navisub">Exported Interfaces</a></td>
<td class="navisub"><a href="#PropertiesSummary" class="navisub">Properties' Summary</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>See also</b></dt>
<dd>::com::sun::star::<a href="../uno/module-ix.html">uno</a>::<a href="../uno/XComponentContext.html">XComponentContext</a></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="IncludedServices"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Included Services</td>
</tr>
<tr>
<td class="imsum_left"><a href="MultiServiceFactory.html">MultiServiceFactory</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>This is a derived MultiServiceFactory service.
 </dd>
</dl>
</td>
</tr>
</table>
<a name="ExportedInterfaces"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Exported Interfaces</td>
</tr>
<tr>
<td class="imsum_left"><a href="XComponent.html">XComponent</a></td>
<td class="imsum_right"><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>
<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"><dl>
<dt><b>Description</b></dt>
<dd>Management of service factories.
 </dd>
</dl>
</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"><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>
<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"><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>
<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>
 &nbsp;</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>&nbsp;<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>