Is it possible to create static properties/methods of a bean class? Does the beans spec cover this?

John Zukowski

The JavaBeans Specification (available from http://java.sun.com/beans/docs/spec.html) specifies that properties are not static, as they are attributes of specific bean instances. There is nothing that stops you from having methods that are static that look like property getter/setter methods. However, no bean builder tool will recognize them as JavaBean properties.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact