Kevin Menard wrote:

Hi Scott,

I have a couple questions for you below.

On Jul 5, 2005, at 10:06 AM, Scott F. Walter wrote:

       /*
<bean name="delegate" class="com.scottwalter.sandbox.tapestry4.MyDelegate" property="delegate"/>
   */
   @Bean
   public abstract MyDelegate getDelegate();


I assume you're injecting the delegate someplace, somehow. Could you please elaborate?

      @Persist
   public abstract Person getPerson();
   public abstract void setPerson(Person p);


In a case like this, does it matter whether the annotation is applied to the getter or the setter?


I assume you're injecting the delegate someplace, somehow. Could you please elaborate?

The following snippet is what does the injection. The @Bean annotations takes the return type of my method and injects the proper class. Hivemind is actually doing the injection behind the scenes.

@Bean
 public abstract MyDelegate getDelegate();

In a case like this, does it matter whether the annotation is applied to the getter or the setter?

I guessed! I don't know what would happen if you just put in on the setter or even on both



--

Scott F. Walter         Scott F. Walter
Principal Consultant
Vivare, Inc.

E: [EMAIL PROTECTED]
E: [EMAIL PROTECTED]
Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to