routeProvider resolve annotation support added

This pull request add annotation support for resolve objects.

Please note, I simply adapted your code. Improvements are welcome.