[jboss-user] [JBoss Seam] - Injection issue

monkeyden do-not-reply at jboss.com
Tue Apr 3 16:37:57 EDT 2007


Can anyone tell me why this doesn't work?

Injector:
@In(required = false, create = true)
  | @Out(required = false, scope = SESSION)
  | private DefaultPaginator paginator;
  | 
  | @Factory("paginator")
  | public void loadDefaultPaginator() {
  |     System.out.println("Loaded the paginator");
  |     paginator = (DefaultPaginator) Component.getInstance("paginator");
  | }


Injectee:
@Name("paginator")
  | @Scope(SESSION)
  | public class DefaultPaginator implements Paginator {    
  |     public DefaultPaginator() {}
  | }

I get hundreds of the System.out message before it finally dies with a StackOverflowError.  

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

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



More information about the jboss-user mailing list