1 29 30 package com.caucho.jsp.el; 31 32 import javax.el.ELContext; 33 import javax.servlet.jsp.el.ImplicitObjectELResolver ; 34 import java.beans.FeatureDescriptor ; 35 import java.util.Iterator ; 36 37 40 public class ImplicitObjectELResolverImpl extends ImplicitObjectELResolver { 41 @Override 42 public Class <String > getCommonPropertyType(ELContext context, 43 Object base) 44 { 45 if (base == null) 46 return String .class; 47 else 48 return null; 49 } 50 51 @Override 52 public Iterator <FeatureDescriptor > 53 getFeatureDescriptors(ELContext context, Object base) 54 { 55 return null; 56 } 57 58 @Override 59 public Class getType(ELContext context, 60 Object base, 61 Object property) 62 { 63 Object value = getValue(context, base, property); 64 65 if (value != null) 66 return value.getClass(); 67 else 68 return null; 69 } 70 71 @Override 72 public Object getValue(ELContext context, 73 Object base, 74 Object property) 75 { 76 return null; 77 } 78 79 @Override 80 public boolean isReadOnly(ELContext context, 81 Object base, 82 Object property) 83 { 84 return true; 85 } 86 87 @Override 88 public void setValue(ELContext context, 89 Object base, 90 Object property, 91 Object value) 92 { 93 } 94 } 95 | Popular Tags |