We've been using ComponentFactory's and ComponentInstances in our software for 
a while when we have a component that we need multiple instances.  However, 
I've noticed that if a component has an optional, static reference, the 
component will be disposed and activated automatically when the service 
referenced comes and goes (which is not too surprising based on the meaning of 
static) meaning the previous instance is no longer valid.

The question is, if I have something that uses that instance, how is it 
supposed to know about the replaced instance.  I'm guessing that the component 
instance object should not be used in this case and I should instead try have 
the component provide a service and use the service reference instead??  Is 
that what is expected or is there some way to be notified about an updated 
component instance?

Thanks,
Dave Humeniuk

Reply via email to