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

◆ addFacet()

template<typename Prx = ObjectPrx, std::enable_if_t< std::is_base_of_v< ObjectPrx, Prx >, bool > = true>
Prx Ice::ObjectAdapter::addFacet ( ObjectPtr servant,
Identity id,
std::string facet )
inline

Adds a servant to this object adapter's Active Servant Map (ASM), while specifying a facet.

The ASM is a map {identity, facet} -> servant.

Template Parameters
PrxThe type of the proxy to return.
Parameters
servantThe servant to add.
idThe identity of the Ice object that is implemented by the servant.
facetThe facet of the Ice object that is implemented by the servant.
Returns
A proxy for id and facet created by this object adapter.
Exceptions
AlreadyRegisteredExceptionThrown when a servant with the same identity and facet is already registered.

Definition at line 121 of file ObjectAdapter.h.