Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ findAdapterById()

std::optional< Ice::ObjectPrx > Ice::LocatorPrx::findAdapterById ( std::string_view id,
const Ice::Context & context = Ice::noExplicitContext ) const

Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).

Parameters
idThe adapter ID.
contextThe request context.
Returns
A dummy proxy with the adapter's endpoints, or null if an object adapter with id was not found.
Exceptions
Ice::AdapterNotFoundExceptionThrown when an object adapter with this adapter ID was not found. The caller should treat this exception like a null return value.