I always used Spring config in XML but now in my new project all the dependent code has so many annotation based springs, eg: Component and Repository annotations instead of an XML based config.

Is there a simple way to print all the beans at runtime from my program, which will dump all the beans(just the name and type would do) that are currently instantiated....

Thanks
Arvind