1 28 29 package com.caucho.es.wrapper; 30 31 import java.beans.IntrospectionException ; 32 import java.beans.PropertyDescriptor ; 33 import java.lang.reflect.Field ; 34 35 class ESPropertyDescriptor extends PropertyDescriptor { 36 String name; 37 Field field; 38 ESMethodDescriptor getter; 39 ESMethodDescriptor setter; 40 41 public String getName() { return name; } 42 public Field getESField() { return field; } 43 public ESMethodDescriptor getESReadMethod() { return getter; } 44 public ESMethodDescriptor getESWriteMethod() { return setter; } 45 46 public ESPropertyDescriptor(String propertyName, Class beanClass) 47 throws IntrospectionException 48 { 49 super(propertyName, null, null); 50 this.name = propertyName; 51 } 52 53 public ESPropertyDescriptor(String propertyName, Field field, 54 ESMethodDescriptor getter, 55 ESMethodDescriptor setter) 56 throws IntrospectionException 57 { 58 super(propertyName, null, null); 59 this.name = propertyName; 60 61 this.field = field; 62 this.getter = getter; 63 this.setter = setter; 64 } 65 } 66 67 68 | Popular Tags |