This content has been marked as final.
Show 1 reply
-
1. Re: Access Factory in code
monkeyden Jan 28, 2011 2:00 PM (in response to vata2999)just inject it, using the same name specified in the factory annotation. e.g.:
@Factory("userList") public List<User> loadUsers(){ List<User> users =... //do stuff to load users return users; }
then, in what you refer to as
component bean
:@In List<User> userList;