Is it possible to create static properties/methods of a bean class? Does the beans spec cover this and can builder tools handle a singleton bean, for example?
Location: http://www.jguru.com/faq/view.jsp?EID=391280 Created: Mar 30, 2001 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Terren Suydam (http://www.jguru.com/guru/viewbio.jsp?EID=18740 There is nothing that stops you from creating static methods within a Bean class. However, they won’t be treated as properties. Also not supported is creating beans from methods other than the constructor… though instances can be serialized to .ser files and instantiated without calling the default/no-arg constructor through Beans.instantiated().