Ice 3.7 Slice API Reference
Plugin.ice
Go to the documentation of this file.
1 
2 //
3 // Copyright (c) ZeroC, Inc. All rights reserved.
4 //
5 
6 #pragma once
7 
8 [["cpp:dll-export:ICE_API"]]
9 [["cpp:doxygen:include:Ice/Ice.h"]]
10 [["cpp:header-ext:h"]]
11 
12 [["ice-prefix"]]
13 
14 [["js:module:ice"]]
15 [["js:cjs-module"]]
16 
17 [["objc:dll-export:ICE_API"]]
18 [["objc:header-dir:objc"]]
19 
20 [["python:pkgdir:Ice"]]
21 
22 #include <Ice/LoggerF.ice>
23 #include <Ice/BuiltinSequences.ice>
24 
25 #ifndef __SLICE2JAVA_COMPAT__
26 [["java:package:com.zeroc"]]
27 #endif
28 
29 ["objc:prefix:ICE"]
30 module Ice
31 {
32 
33 #if !defined(__SLICE2PHP__)
34 
44 local interface Plugin
45 {
51  void initialize();
52 
58  void destroy();
59 }
60 
67 local interface PluginManager
68 {
83 
93  ["cpp:noexcept", "swift:noexcept"] StringSeq getPlugins();
94 
106  Plugin getPlugin(string name);
107 
119  void addPlugin(string name, Plugin pi);
120 
126  ["cpp:noexcept", "swift:noexcept"] void destroy();
127 }
128 
129 #endif
130 
131 }
Ice::PluginManager::destroy
void destroy()
Called when the communicator is being destroyed.
Ice::PluginManager::addPlugin
void addPlugin(string name, Plugin pi)
Install a new plug-in.
BuiltinSequences.ice
Ice::StringSeq
sequence< string > StringSeq
A sequence of strings.
Definition: BuiltinSequences.ice:51
LoggerF.ice
Ice::PluginManager::initializePlugins
void initializePlugins()
Initialize the configured plug-ins.
Ice::Plugin::initialize
void initialize()
Perform any necessary initialization steps.
Ice::PluginManager::getPlugins
StringSeq getPlugins()
Get a list of plugins installed.
Ice
The Ice core library.
Definition: BuiltinSequences.ice:27
Ice::PluginManager::getPlugin
Plugin getPlugin(string name)
Obtain a plug-in by name.
Ice::Plugin::destroy
void destroy()
Called when the communicator is being destroyed.
Ice::Plugin
A communicator plug-in.
Definition: Plugin.ice:45
Ice::PluginManager
Each communicator has a plug-in manager to administer the set of plug-ins.
Definition: Plugin.ice:68