[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: enums, generics and other animals

adrian@jboss.org do-not-reply at jboss.com
Fri Mar 7 13:57:30 EST 2008


"alesj" wrote : "adrian at jboss.org" wrote : Why have you created a package called "enums"?
  |   | 
  | Now you complain. :-)
  | I proposed the name in the first few posts.
  | Just following the silence rule. ;-)
  | 

This thread is pages long (you expect me to spot a package name
called enums in discussion about enums ;-)

anonymous wrote : 
  | @Factory does what our constructor xml factory does as well.
  | It just happens to be on the class rather than on the constructor.
  | If the factoryClass is not specified, the class on which it is defined is used.
  | 
  | @FactoryMethod is probably an extension, but functionally similar to @Factory with class and method specified.
  | You scan the static methods which are annotated to be factory methods.

Ok, makes sense now, it just looked stupid at first glance. I should RTFM
and remember to engage my brain before opening my mouth :-)

  | /**
  |  * Mark static method as factory method.
  |  *
  |  * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
  |  */
  | public @interface FactoryMethod
  | 


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

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



More information about the jboss-dev-forums mailing list