Skip navigation links

Package net.sf.mmm.util.bean.api

Provides the API for generic java beans defined as simple interface.

See: Description

Package net.sf.mmm.util.bean.api Description

Provides the API for generic java beans defined as simple interface.

Bean API


Writing regular Java Beans is painful. You have to write a lot of boilerplate code and implement getters, setters, equals, hashCode, and toString.
The Bean API provided here saves you from all this pain and makes your life a lot easier. All you need to do is to write an interface for your beans that derive from Bean with property access methods. You can still define getters and setters if you like but there is no need to implement any method. For a complete list of features or an code example see Bean. In order to create instances of a custom Bean interface, you can simply use BeanFactory.create(Class). You may also add a static create() method in your Bean interface to make the usage as simple as possible.
Skip navigation links

Copyright © 2001–2016 mmm-Team. All rights reserved.