1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_registry_XImplementationRegistration_idl__
20 #define __com_sun_star_registry_XImplementationRegistration_idl__
22 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/registry
/XSimpleRegistry.idl
>
26 #include
<com
/sun
/star
/registry
/CannotRegisterImplementationException.idl
>
30 module com
{ module sun
{ module star
{ module registry
{
32 /** offers a registry for implementation objects and provides information
33 about the registered implementations.
35 published
interface XImplementationRegistration
: com
::sun
::star
::uno
::XInterface
37 /** registers a component which provides one or more implementations.
40 specifies the location of the component with the URL.
43 specifies the registry where the component should be installed.
44 If it is a NULL interface, then the component will be installed
45 in the system registry (if this feature is supported).
47 void registerImplementation
( [in] string aImplementationLoader
,
48 [in] string aLocation
,
49 [in] com
::sun
::star
::registry
::XSimpleRegistry xReg
)
50 raises
( com
::sun
::star
::registry
::CannotRegisterImplementationException
);
52 /** revokes a component and all their provided implementations from the registry.
55 specifies the location of the component with the URL.
58 specifies the registry where the component should be installed.
59 If it is a NULL interface, then the component will be revoked
60 from the system registry (if this feature is supported).
62 boolean revokeImplementation
( [in] string aLocation
,
63 [in] com
::sun
::star
::registry
::XSimpleRegistry xReg
);
65 // DOCUMENTATION CHANGED FOR XImplementationRegistration::getImplementations
67 the names of the implementations registered by the url location.
69 @param aImplementationLoader
70 specifies the name of the needed loader for this type of implementation. For
71 example, the loader "com.sun.star.loader.SharedLibrary" for implementations
72 that are realized as an SharedLibrary.
75 specifies the location of the component with the URL.
77 sequence
<string> getImplementations
( [in] string aImplementationLoader
,
78 [in] string aLocation
);
80 // DOCUMENTATION CHANGED FOR XImplementationRegistration::checkInstantiation
82 a sequence with names of the missing services to create an instance of this implementation.
84 @param implementationName
85 specifies the name of the checked implementation.
87 sequence
<string> checkInstantiation
( [in] string implementationName
);
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */