This content has been marked as final.
Show 3 replies
-
1. Re: enforce new instance with create=true
blabno Sep 10, 2008 7:15 AM (in response to nimo22)Never use constructor with seam components !!! You could use Component.forName(
yourComponentName
).newInstance() but consult with Pete if this is safe. -
2. Re: enforce new instance with create=true
nimo22 Sep 10, 2008 8:25 AM (in response to nimo22)Why I am disallowed to use constructors ???
(I can find this rule in the SEAM-Manual)Constructors in JAVA is one of the normal things.
However, I had used constructors in Java before,
without any (visible) problems.So I have to make a new instance with:
Component.forName("test").newInstance();
comes from the Component with
@Name("test")
-
3. Re: enforce new instance with create=true
luxspes Sep 10, 2008 3:39 PM (in response to nimo22)
nimo mayr wrote on Sep 10, 2008 08:25:
Why I am disallowed to use constructors ???
(I can find this rule in the SEAM-Manual)
Because with constructors, Seam IoC is not invoked and annotations like @In are ignored.