How Are Component's Params Set?

Hi, I was just trying to figure out how are parameters set in config/main.php passed to the Component.

I set some settings that I need to use in my ADUserIdentity class…

I see that I should have public $setting in my class and that it will be assigned to it on construct, if I am right.

But I would like this to be private $setting so it cannot be set by mistake. So, the question is When and Where are these settings defined in Components config array set in my class?



Variables set in config/main.php can be accessed like this: