Ice 3.7 Slice API Reference
ServantLocator.ice
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #pragma once
6 
7 [["cpp:dll-export:ICE_API"]]
8 [["cpp:doxygen:include:Ice/Ice.h"]]
9 [["cpp:header-ext:h"]]
10 
11 [["ice-prefix"]]
12 
13 [["js:module:ice"]]
14 [["js:cjs-module"]]
15 
16 [["objc:dll-export:ICE_API"]]
17 [["objc:header-dir:objc"]]
18 
19 [["python:pkgdir:Ice"]]
20 
21 #include <Ice/ObjectAdapterF.ice>
22 #include <Ice/Current.ice>
23 
24 #ifndef __SLICE2JAVA_COMPAT__
25 [["java:package:com.zeroc"]]
26 #endif
27 
28 ["objc:prefix:ICE"]
29 module Ice
30 {
31 
42 local interface ServantLocator
43 {
83  ["java:UserException"] Object locate(Current curr, out LocalObject cookie);
84 
116  ["java:UserException"] void finished(Current curr,
117  ["swift:nonnull"] Object servant,
118  LocalObject cookie);
119 
133  ["swift:noexcept"] void deactivate(string category);
134 }
135 
136 }
Ice::ServantLocator::deactivate
void deactivate(string category)
Called when the object adapter in which this servant locator is installed is destroyed.
Ice::ServantLocator
A servant locator is called by an object adapter to locate a servant that is not found in its active ...
Definition: ServantLocator.ice:43
ObjectAdapterF.ice
Ice
The Ice core library.
Definition: BuiltinSequences.ice:27
Current.ice
Ice::Current
Information about the current method invocation for servers.
Definition: Current.ice:103
Ice::ServantLocator::locate
Object locate(Current curr, out LocalObject cookie)
Called before a request is dispatched if a servant cannot be found in the object adapter's active ser...
Ice::ServantLocator::finished
void finished(Current curr, ["swift:nonnull"] Object servant, LocalObject cookie)
Called by the object adapter after a request has been made.