[jboss-user] [JBoss Seam] - Re: Injection when using abstract parent class

gmanwani do-not-reply at jboss.com
Sat Feb 10 14:11:00 EST 2007


Sorry about the missing the code tags! My bad, here is my setup

Foo is not really a Seam component but I make it available through the Seam manager pattern. SeamComp1 is a typical JavaBean seam component with Name and Scope(EVENT) annotations.


  | 
  | public abstract AbstractFoo {
  |   @In
  |   private SeamComp1 seamcomp1;
  | 
  |   init() {
  |     seamcomp1.getSomething();
  |   }
  | }
  | 
  | public Foo extends AbstractFoo {
  |   public Foo() {
  |     init();
  |   }
  | } 
  | 
  | @Name("foo")
  | @Scope(EVENT)
  | public class FooMgr {
  |   @Unwrap
  |    public Foo getFoo() {
  |      return new Foo();
  |    }
  | }
  | 

Hope my setup is clear.

Thanks in advance for all the help!







View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014206#4014206

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014206



More information about the jboss-user mailing list