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

◆ use()

virtual ObjectAdapterPtr Ice::ObjectAdapter::use ( std::function< ObjectPtr(ObjectPtr)> middlewareFactory)
pure virtual

Adds a middleware to the dispatch pipeline of this object adapter.

Parameters
middlewareFactoryThe middleware factory that creates the new middleware when this object adapter creates its dispatch pipeline. A middleware factory is a function that takes an ObjectPtr (the next element in the dispatch pipeline) and returns a new ObjectPtr (the middleware you want to install in the pipeline).
Returns
This object adapter.
Remarks
All middleware must be installed before the first dispatch.
The middleware are executed in the order they are installed.