This content has been marked as final.
Show 5 replies
-
1. Re: Constructor versus @Create annotation
gmanwani Feb 12, 2007 10:08 PM (in response to gmanwani)Sorry the above constructors are not Foo() but FooImpl1() and FooImpl2() respectively.
-
2. Re: Constructor versus @Create annotation
hstang Feb 12, 2007 10:37 PM (in response to gmanwani)injection takes place after an instance is fully constructed. if you have a method annotated with @Create, it will be called after injection has taken place.
-
3. Re: Constructor versus @Create annotation
gavin.king Feb 12, 2007 10:59 PM (in response to gmanwani)Injection is not defined in constructors. That is why we have the @Create method.
-
4. Re: Constructor versus @Create annotation
gmanwani Feb 13, 2007 1:31 AM (in response to gmanwani)Thanks Gavin for the clarification.
Is there something stopping us from doing that i.e can we not inject/outject objects during construction? -
5. Re: Constructor versus @Create annotation
gavin.king Feb 13, 2007 1:55 AM (in response to gmanwani)yes, exactly.