[jboss-user] [JBoss Seam] - In/Outjection prefixes

tiomalandra do-not-reply at jboss.com
Thu Dec 14 06:53:16 EST 2006


Seam Team:

I want to know if in a future seam release, you can include a new feature that make easy the in/outjection of prefixed components

By example, there are two classes in our model:


  | @Name("com.mycompany.person")
  | class Person{....}
  | 
  | @Name("com.mycompany.employee")
  | class Employee{....}
  | 

It's very simple to write

  | @Import("com.mycompany")
  | @Name("register")
  | class RegisterAction{
  |   
  |   @In
  |   Person person; 
  | 
  |   @In
  |   Employee employee;
  | 
  | }
  | 

...instead of


  | @Name("register")
  | class RegisterAction{
  |   
  |   @In("org.mycompany.person")
  |   Person person; 
  | 
  |   @In("org.mycompany.employee")
  |   Employee employee;
  | 
  | }
  | 

Sorry my english! ;)
Cheers

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

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



More information about the jboss-user mailing list