1*408a4873SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*408a4873SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*408a4873SAndrew Rist * distributed with this work for additional information
6*408a4873SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance
9*408a4873SAndrew Rist * with the License.  You may obtain a copy of the License at
10*408a4873SAndrew Rist *
11*408a4873SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*408a4873SAndrew Rist *
13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*408a4873SAndrew Rist * software distributed under the License is distributed on an
15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*408a4873SAndrew Rist * KIND, either express or implied.  See the License for the
17*408a4873SAndrew Rist * specific language governing permissions and limitations
18*408a4873SAndrew Rist * under the License.
19*408a4873SAndrew Rist *
20*408a4873SAndrew Rist *************************************************************/
21*408a4873SAndrew Rist
22*408a4873SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_lang_ServiceManager_idl__
24cdf0e10cSrcweir#define __com_sun_star_lang_ServiceManager_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_lang_MultiServiceFactory_idl__
27cdf0e10cSrcweir#include <com/sun/star/lang/MultiServiceFactory.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_lang_XComponent_idl__
31cdf0e10cSrcweir#include <com/sun/star/lang/XComponent.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_container_XSet_idl__
35cdf0e10cSrcweir#include <com/sun/star/container/XSet.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_container_XContentEnumerationAccess_idl__
39cdf0e10cSrcweir#include <com/sun/star/container/XContentEnumerationAccess.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
43cdf0e10cSrcweir#include <com/sun/star/lang/XMultiServiceFactory.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_lang_XMultiComponentFactory_idl__
47cdf0e10cSrcweir#include <com/sun/star/lang/XMultiComponentFactory.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir#ifndef __com_sun_star_lang_XServiceInfo_idl__
51cdf0e10cSrcweir#include <com/sun/star/lang/XServiceInfo.idl>
52cdf0e10cSrcweir#endif
53cdf0e10cSrcweir
54cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
55cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
56cdf0e10cSrcweir#endif
57cdf0e10cSrcweir
58cdf0e10cSrcweir//=============================================================================
59cdf0e10cSrcweir
60cdf0e10cSrcweirmodule com {  module sun {  module star {  module lang {
61cdf0e10cSrcweir
62cdf0e10cSrcweir//=============================================================================
63cdf0e10cSrcweir
64cdf0e10cSrcweir/** Provides a collection of implementations for services.  This is a singleton
65cdf0e10cSrcweir    you commonly find in your component context under key
66cdf0e10cSrcweir    <code>/singletons/com.sun.star.lang.theServiceManager</code>.
67cdf0e10cSrcweir
68cdf0e10cSrcweir	<p>
69cdf0e10cSrcweir    The factories are accessed with a service name. It is possible to
70cdf0e10cSrcweir	access the factories with their implementation names, but you should
71cdf0e10cSrcweir	avoid this.
72cdf0e10cSrcweir    </p>
73cdf0e10cSrcweir
74cdf0e10cSrcweir	<p>Service factories added via <type scope="com::sun::star::container">XSet</type>
75cdf0e10cSrcweir	should support the following interfaces: </p>
76cdf0e10cSrcweir
77cdf0e10cSrcweir	<dl>
78cdf0e10cSrcweir    <dt><type>XServiceInfo</type></dt>
79cdf0e10cSrcweir    <dd>supported interfaces/ implementation name</dd>
80cdf0e10cSrcweir
81cdf0e10cSrcweir    <dt><type>XSingleComponentFactory</type>(optional)</dt>
82cdf0e10cSrcweir    <dd>is used to create instances of the implementation.</dd>
83cdf0e10cSrcweir
84cdf0e10cSrcweir    <dt><type>XComponent</type> (optional)</dt>
85cdf0e10cSrcweir    <dd>The service manager calls the method
86cdf0e10cSrcweir    <member scope="com::sun::star::lang">XComponent::dispose</member>
87cdf0e10cSrcweir    on the factory when going down (i.e. it is commonly disposed by the component context).</dd>
88cdf0e10cSrcweir	</dl>
89cdf0e10cSrcweir
90cdf0e10cSrcweir    @see com::sun::star::uno::XComponentContext
91cdf0e10cSrcweir*/
92cdf0e10cSrcweirpublished service ServiceManager
93cdf0e10cSrcweir{
94cdf0e10cSrcweir    /** This is a derived MultiServiceFactory service.
95cdf0e10cSrcweir    */
96cdf0e10cSrcweir	service com::sun::star::lang::MultiServiceFactory;
97cdf0e10cSrcweir
98cdf0e10cSrcweir	/** Disposing of service manager.
99cdf0e10cSrcweir        <p>
100cdf0e10cSrcweir        The component context disposes its service manager singleton when going down
101cdf0e10cSrcweir        (i.e. when the component context is disposed).
102cdf0e10cSrcweir		</p>
103cdf0e10cSrcweir    */
104cdf0e10cSrcweir	interface com::sun::star::lang::XComponent;
105cdf0e10cSrcweir
106cdf0e10cSrcweir	/** Management of service factories.
107cdf0e10cSrcweir    */
108cdf0e10cSrcweir	interface com::sun::star::container::XSet;
109cdf0e10cSrcweir
110cdf0e10cSrcweir	/** Enumeration of all service factories.
111cdf0e10cSrcweir        <p>
112cdf0e10cSrcweir        It is possible to enumerate all implementations that support the
113cdf0e10cSrcweir		service specified with the argument of the
114cdf0e10cSrcweir		<member scope="com::sun::star::container">XContentEnumerationAccess::createContentEnumeration</member> method.
115cdf0e10cSrcweir		The enumerator commonly returns <type>XSingleComponentFactory</type>
116cdf0e10cSrcweir        interfaces.
117cdf0e10cSrcweir        </p>
118cdf0e10cSrcweir    */
119cdf0e10cSrcweir	interface com::sun::star::container::XContentEnumerationAccess;
120cdf0e10cSrcweir
121cdf0e10cSrcweir	/** Property access.
122cdf0e10cSrcweir	*/
123cdf0e10cSrcweir	[optional] interface com::sun::star::beans::XPropertySet;
124cdf0e10cSrcweir	/** specifies the default component context to be used, if instanciating services
125cdf0e10cSrcweir        via <type>XMultiServiceFactory</type>
126cdf0e10cSrcweir    */
127cdf0e10cSrcweir	[optional, property] com::sun::star::uno::XComponentContext DefaultContext;
128cdf0e10cSrcweir};
129cdf0e10cSrcweir
130cdf0e10cSrcweir//=============================================================================
131cdf0e10cSrcweir
132cdf0e10cSrcweir}; }; }; };
133cdf0e10cSrcweir
134cdf0e10cSrcweir/*=============================================================================
135cdf0e10cSrcweir
136cdf0e10cSrcweir=============================================================================*/
137cdf0e10cSrcweir#endif
138