Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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().

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123