registerObject ? how to programatically validate properties?

Hello !

I’m writing a plugin for GJS/GI and i need to validate their ‘requires’ in an object (they get into${COMPONENT_NAME})

I’m not sure how i get to be called everytime an is referenced to check if it’s valid or not.

do you have any advices on how to start ?