org.netbeans.modules.settings/1 1.26.1

org.netbeans.api.settings
Annotation Type ConvertAsJavaBean


@Retention(value=SOURCE)
@Target(value=TYPE)
@Documented
public @interface ConvertAsJavaBean

Specifies the kind of persistence to use of the annotated class. Uses XMLDecoder and XMLEncoder to store and read values of the class (and by default also its subclasses).

The format uses getters and setters of the bean and usually needs default constructor:

 @ConvertAsJavaBean
 public class YourObject {
   public YourObject() {}
   public String getName();
   public void setName(String name);
 }
 
If the bean supports PropertyChangeListener notifications and contains addPropertyChangeListener method, the system starts to listen on existing objects and in case a property change is delivered, the new state of the object is persisted again.

Since:
1.20

Optional Element Summary
 boolean subclasses
          Shall subclasses of this class be also converted as JavaBeans?
 

subclasses

public abstract boolean subclasses
Shall subclasses of this class be also converted as JavaBeans?

Default:
true

org.netbeans.modules.settings/1 1.26.1

Built on September 19 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.