what is delayed and immediate component in simple words ?
i found somehwere in google :
- Delayed Component
Activation is not done until there is a request for a service object. Therefore even class loading and instantiation can be delayed until that time. A Delayed Component needs to specify a service. - Immediate Component
Activated as soon as its dependencies are satisfied. An Immediate Component does not need to specify a service
I didnt get this specifying service things ?
As per my understanding if we put
@Component(immediate = true/false)
we will get Delayed and Immediate component on that basis .
Can anyone please explain to me in my case if I am having one service Hellosrviceimplem.java and helloservice interface ....and put @Component(immediate = true/false) what would be the scenerio?