dao icon indicating copy to clipboard operation
dao copied to clipboard

Finding routines by a decorator

Open Night-walker opened this issue 10 years ago • 2 comments

It would be great to be able to extract all routines in a namespace decorated by a specific decorator. That it, using decorator as an annotation to automate registering of routines for certain tasks. Very handy for tests, RPC, event handlers and so on.

If just requires an extra DList in DaoRoutine containing names or pointers to decorators applied to it.

Night-walker avatar Aug 02 '15 13:08 Night-walker

Done (see DaoRoutineBody::decoratees).

daokoder avatar Aug 06 '15 15:08 daokoder

Good, but... How do I find the test namespace from test.dao and @test decorator declared within? The test namespace created in dao_test_base.c doesn't seem to contain it, or I'm looking in the wrong place.

Night-walker avatar Aug 06 '15 15:08 Night-walker