Ok, it does work. My class has a configuration to configure property "scheduler.period". The mistake I made was that I had the following properties as part of the @Component annotation
"scheduler.concurrent=false",
"scheduler.immediate=true",
"scheduler.runOn=SINGLE"
So apparently you cannot spread scheduler properties between a config class and the Component annotation. But then how can you make those 3 properties private i.e. non-configurable while still have the ability to configure property "scheduler.period"?