Skip to content

Instantly share code, notes, and snippets.

@hugithordarson
Created July 24, 2015 16:29
Show Gist options
  • Save hugithordarson/d1958e9ead2d3c1a390d to your computer and use it in GitHub Desktop.
Save hugithordarson/d1958e9ead2d3c1a390d to your computer and use it in GitHub Desktop.
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