1 28 29 package com.caucho.el; 30 31 import javax.el.ELContext; 32 import javax.el.ELException; 33 import javax.el.ELResolver; 34 import javax.el.PropertyNotFoundException; 35 import javax.el.PropertyNotWritableException; 36 import java.beans.FeatureDescriptor ; 37 import java.util.Iterator ; 38 import java.util.logging.Logger ; 39 40 44 public class AbstractVariableResolver extends ELResolver 45 { 46 private static final Logger log 47 = Logger.getLogger(AbstractVariableResolver.class.getName()); 48 49 private ELResolver _next; 50 51 54 public AbstractVariableResolver() 55 { 56 } 57 58 61 public AbstractVariableResolver(ELResolver next) 62 { 63 _next = next; 64 } 65 66 69 public ELResolver getNext() 70 { 71 return _next; 72 } 73 74 77 @Override 78 public Object getValue(ELContext context, 79 Object base, 80 Object property) 81 { 82 return null; 83 } 84 85 89 @Override 90 public Class <?> getCommonPropertyType(ELContext context, 91 Object base) 92 { 93 return null; 94 } 95 96 public Iterator <FeatureDescriptor > 97 getFeatureDescriptors(ELContext context, Object base) 98 { 99 return null; 100 } 101 102 public Class <?> getType(ELContext context, 103 Object base, 104 Object property) 105 { 106 Object value = getValue(context, base, property); 107 108 if (value == null) 109 return null; 110 else 111 return value.getClass(); 112 } 113 114 public boolean isReadOnly(ELContext context, 115 Object base, 116 Object property) 117 throws PropertyNotFoundException, 118 ELException 119 { 120 return true; 121 } 122 123 public void setValue(ELContext context, 124 Object base, 125 Object property, 126 Object value) 127 throws PropertyNotFoundException, 128 PropertyNotWritableException, 129 ELException 130 { 131 } 132 133 public String toString() 134 { 135 return "AbstractVariableResolver[]"; 136 } 137 } 138 | Popular Tags |