Code-generates a subclass of ResourceRouterBuilder specialized for the Resource type.
Code-generates a subclass of ResourceRouterBuilder specialized for the Resource type.
Be sure to look over NestingCollectionResourceRouter first, as that is crucial to understanding the implementation of this macro. The bulk of the router is actually implemented in normal code within the NestingCollectionResourceRouter class. This macro simply generates a subclass specialized to provide the glue code to bind to an instance of Resource.
The resource type that we are specializing.
The weak type tag for the resource we are specializing.
A c.Tree corresponding to a ResourceRouterBuilder.