Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Ice::ServantLocator Class Referenceabstract

An application-provided class that an object adapter uses to locate servants. More...

#include <Ice/Ice.h>

Public Member Functions

virtual void deactivate (std::string_view category)=0
 Notifies this servant locator that the object adapter is being deactivated.
virtual void finished (const Current &curr, const ObjectPtr &servant, const std::shared_ptr< void > &cookie)=0
 Notifies this servant locator that the dispatch on the servant returned by locate is complete.
virtual ObjectPtr locate (const Current &curr, std::shared_ptr< void > &cookie)=0
 Asks this servant locator to find and return a servant.

Detailed Description

An application-provided class that an object adapter uses to locate servants.

Remarks
Servant locators are provided for backward compatibility with earlier versions of Ice. You should consider using a default servant instead (see ObjectAdapter::addDefaultServant). For more advanced use cases, you can create a middleware (see ObjectAdapter::use).
See also
ObjectAdapter::addServantLocator

Definition at line 17 of file ServantLocator.h.


The documentation for this class was generated from the following file: