I have followed these steps:
- Created a custom annotation:
@Devoted
- Created a custom
ImportBeanDefinitionRegistrar
. Iterated already registered bean definitions to find out `@Devoted @Controller's and removed them.
Based on a request I will provide implementation details.