Create global interceptor

It’s possible to create one interceptor to the .add method in ALL components?

I want to create one “security system” in my app. every time that a component will be added I wanna to check if my dev added an specific annotation

tks

You can try

a) extending every component that implements HasComponents, override add and then only use these extended components

b) [aspect-oriented programming]
(https://www.tutorialspoint.com/spring/aop_with_spring.htm)

-Olli