Hello,

I would like to understand something about @components and instances.
If I have a service @Component Foo with a strategy of INSTANCE and I have 
a @Component consumer Bar with a field @Requires Foo, why is the instance 
not created automatically by iPojo? there is a valid factory for Foo ready 
to create instances and there is an invalid Bar waiting for an instance of 
Foo, why doesn't iPojo instantiate Foo due to the demand for it? i know 
about the other techniques to instantiate, that's not my question. In 
other words, why doesn't iPojo handle instance creation internally (at 
least in such trivial cases as a factory being valid and a consumer being 
invalid due to a missing instance of the valid factory), why is it the job 
of the developer to use a factory or a @Configuration annotation 
explicitly?

Thank you

Alejandro Endo | Software Designer/Concepteur de logiciels 

DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.

Reply via email to