[jboss-user] [JBoss Seam] - Re: Inject messages into JavaBean

monkeyden do-not-reply at jboss.com
Fri Mar 9 16:12:16 EST 2007


Im not instantiating it.  I want Seam to create it and inject it.

To be injected
@Name("paginator")
  | @Scope(SESSION)
  | public class DefaultPaginator implements Paginator {
  | 
  |     @Logger
  |     private Log log;
  | 
  |     public DefaultPaginator() {}
  | 
  |     ...business methods
  | 
  | }

In the owner class

  | @Stateful
  | @Name("zipSearchRef")
  | @Scope(SESSION)
  | public class ZipSeachActionRef implements ZipSeachRef{
  | 
  |     @In(value="zipPaginator", create=true)
  |     @Out(value="zipPaginator", scope=SESSION, required=false)
  |     DefaultPaginator zipPaginator;
  | 
  |     ...business methods
  | 
  | }

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

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



More information about the jboss-user mailing list