The Registry provides functionality to register a holder object to the Akkamo context,
which value can be changed later. Note that this structure is immutable, hence the value
replacement will yield new instance of Registry. The value is not intended to be changed
directly, but using the registerIn method.
For further clarification, let's introduce simple example. Let the RouteRegistry be fictional
(see. akkamo AkkaHttp project for real example) implementation of Registry, representing the
collection of all registered REST HTTP endpoints, allowing any other module to register own
Route, representing particular HTTP route (e.g. GET /foo/bar).
// register the custom RouteRegistry into the provided HttpRegistry
ctx.registerIn[RouteRegistry, Route](instanceOfRoute)
For more details about creating and registering custom registry, please refer the official
Akkamo online documentation here: http://akkamo.eu
The Registry provides functionality to register a holder object to the Akkamo context, which value can be changed later. Note that this structure is immutable, hence the value replacement will yield new instance of Registry. The value is not intended to be changed directly, but using the
registerIn
method.For further clarification, let's introduce simple example. Let the
RouteRegistry
be fictional (see. akkamo AkkaHttp project for real example) implementation ofRegistry
, representing the collection of all registered REST HTTP endpoints, allowing any other module to register ownRoute
, representing particular HTTP route (e.g.GET /foo/bar
).// register the custom RouteRegistry into the provided HttpRegistry ctx.registerIn[RouteRegistry, Route](instanceOfRoute)
For more details about creating and registering custom registry, please refer the official Akkamo online documentation here: http://akkamo.eu
type of held value