Class ReadOnlyMapELResolver


  • public class ReadOnlyMapELResolver
    extends javax.el.ELResolver
    An ELResolver that exposed object values in the map, under the name of the entry's key. The values in the map are only returned when requested property has no 'base', meaning it's a root-object.
    • Constructor Detail

      • ReadOnlyMapELResolver

        public ReadOnlyMapELResolver​(Map<Object,​Object> map)
    • Method Detail

      • getValue

        public Object getValue​(javax.el.ELContext context,
                               Object base,
                               Object property)
        Specified by:
        getValue in class javax.el.ELResolver
      • isReadOnly

        public boolean isReadOnly​(javax.el.ELContext context,
                                  Object base,
                                  Object property)
        Specified by:
        isReadOnly in class javax.el.ELResolver
      • setValue

        public void setValue​(javax.el.ELContext context,
                             Object base,
                             Object property,
                             Object value)
        Specified by:
        setValue in class javax.el.ELResolver
      • getCommonPropertyType

        public Class<?> getCommonPropertyType​(javax.el.ELContext context,
                                              Object arg)
        Specified by:
        getCommonPropertyType in class javax.el.ELResolver
      • getFeatureDescriptors

        public Iterator<FeatureDescriptor> getFeatureDescriptors​(javax.el.ELContext context,
                                                                 Object arg)
        Specified by:
        getFeatureDescriptors in class javax.el.ELResolver
      • getType

        public Class<?> getType​(javax.el.ELContext context,
                                Object arg1,
                                Object arg2)
        Specified by:
        getType in class javax.el.ELResolver