Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package strimillinn.core.model.auto;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;
public class _ProductBeanInfo extends SimpleBeanInfo {
@Override
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