Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;
public class _ProductBeanInfo extends SimpleBeanInfo {
public PropertyDescriptor[] getPropertyDescriptors() {
try {
PropertyDescriptor name = new PropertyDescriptor( "name", _Product.class, "name", "setName" );
return new PropertyDescriptor[] { name };
catch( IntrospectionException e ) {
throw new RuntimeException( e );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment