Properties entered in not set before start() is called

Gabriel Rossetti
Added over 4 years ago

Hi All,

Please read this before:

I'm referencing this thread because I have an issue with start(). I am only doing initialization for my component in it now, but for some reason, the properties I set in are not set before start() is called (it is set at some point), so if I override a property there that I need during the start() if doesn't work... I think this is a bug personally since as you said in the above link that the start() should be used to initialize my component but I cannot do this properly because of this issue.



Replies (3)

Added by Wojciech Kapcia TigaseTeam over 4 years ago

Have you read Component Implementation - Lesson 8 - Startup Time As you can see properties are set in later steps.

Added by Gabriel Rossetti over 4 years ago

Hi Wojciech,

Thanks for the link, no I did not read it, I had not seen it when I had originally started coding my project several months ago, I may have misses it.

So start() is useful for what exactly? It says: "the component can start it’s internal jobs or worker threads or whatever it needs for future activity" but this is not true, since the internal jobs/worker threads/etc could need the properties. I'll switch to using initializationCompleted() then, no big issue.

Another question concerning properties, if they are updated va an ad-hoc command, is there a hook for this?




Added by Artur Hefczyc TigaseTeam over 4 years ago

When properties are updated/changed, then setProperties() method is called on the component. So this is your hook.