[jboss-user] [JBoss Seam] - When to use @Factory

lightbulb432 do-not-reply at jboss.com
Tue Jan 16 00:00:20 EST 2007


In general, what's the difference between using @Factory and not? When should @Factory be used? What's the difference between the following two options (e.g. for populating a datamodel, or even for doing something else).

@DataModel
  | private List<Stuff> stuff;
  | 
  | @Factory
  | public void getStuff() {
  | 	stuff = findListOfStuff();
  | }

@DataModel
  | public List<Stuff> getStuff() {
  | 	return findListOfStuff();
  | }

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

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



More information about the jboss-user mailing list