If I'm understanding your question, you could just use a factory method to create the
bean and initialize it on demand.
| @Factory(name="gameAction",scope=SESSION)
| public GameAction initGameAction() {
|
| GameAction result = new GameAction(someId,someName);
| return result;
| }
|
When you inject it simply specifiy that you want to create it if it doesn't exist.
| //in some other bean
| @In(create=true)
| private GameAction gameAction;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057783#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...