grr, my first mail got eaten by the spam daemon

--- Mark Struberg <[email protected]> schrieb am Di, 13.1.2009:

> Von: Mark Struberg <[email protected]>
> Betreff: 
> An: [email protected]
> Datum: Dienstag, 13. Januar 2009, 21:46
> Hi!
> 
> I like to test the constructor injection via XML
> definition.
> 
> For what I understand after reading the spec, the following
> should work:
> 
> Assume we have the WebBean, _without_ any annotations:
> 
> public class TstBeanConstructor
> {
>     
>     private int i1=0;
>     private int i2=0;
>     
>     public TstBeanConstructor(int i1)
>     {
>         this.i1 = i1*100;
>     }
>     
>     public int getI1()
> ...
> 
> 
> and the XML looks like:
> 
>     <myapp:TstBeanConstructor>
>         <RequestScoped/>
>         <myapp:TstBeanConstructor>
>             <myapp:i1>12</myapp:i1>            
>    
>         </myapp:TstBeanConstructor> 
>     </myapp:TstBeanConstructor> 
> 
> 
> should this work? At first I was a bit confused about the 2
> <myapp:TstBeanConstructor>, is this correct in the
> XML?
> 
> txs and LieGrue,
> strub



Reply via email to