# BeanInfo Documentation

**URL:** <https://forum.inductiveautomation.com/t/beaninfo-documentation/3310>\
**Category:** Module Development\
**Created:** [September 20, 2011, 9:35pm UTC](https://forum.inductiveautomation.com/t/beaninfo-documentation/3310 "2011-09-20T21:35:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [September 20, 2011, 9:35pm UTC](https://forum.inductiveautomation.com/t/beaninfo-documentation/3310/1 "2011-09-20T21:35:21Z")

</div>

Is there any solid documentation for BeanInfo definitions? The SDK document says to refer to the examples, but the examples are pretty sparse on BeanInfo data.

For example, how would I define a boolean property?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 21, 2011, 6:23pm UTC](https://forum.inductiveautomation.com/t/beaninfo-documentation/3310/2 "2011-09-21T18:23:05Z")

</div>

Well, one thing to know is that they aren’t our invention. That means you can read some more background info about them [elsewhere](http://download.oracle.com/javase/tutorial/javabeans/introspection/index.html).

Adding a boolean property would be simple, there are basically two steps for adding any sort of property.

1. Create the getter/setter pair.

To expose a property, you need a getter/setter pair of methods on your component class itself. For a boolean property called [tt]awesomeMode[/tt], the getter/setter should look like this:

[code]public boolean isAwesomeMode() {  
return awesomeMode;  
}

public void setAwesomeMode(boolean val) {  
this.awesomeMode=val;  
}[/code]

2. Add the property to the bean info

To add properties in the bean info, override initProperties(). (don’t forget to call super.initProperties).

Then have a line something like this:

```auto
addProp("awesomeMode", "Be Awesome?", "If true, the component will be awesome", CAT_BEHAVIOR);
```
