Created
July 24, 2015 16:29
-
-
Save hugithordarson/d1958e9ead2d3c1a390d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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