Class ReflectiveMethodELResolver

java.lang.Object
jakarta.el.ELResolver
io.micronaut.el.resolver.ReflectiveMethodELResolver

public final class ReflectiveMethodELResolver extends jakarta.el.ELResolver
Invokes the methods of the types that have no bean introspection, reflectively, as BeanELResolver and StaticFieldELResolver do, with the method looked up through the cache of ELMethods: the resolvers of the specification read Class.getMethods() on every invocation.

The resolver only invokes: the properties stay with the resolvers of the specification. It declines the bases the specification gives a resolver of their own for invocation, the streams and the optionals, and the constructors, so that those resolvers keep them.

Since:
1.0
Author:
Denis Stepanov
  • Constructor Details

    • ReflectiveMethodELResolver

      public ReflectiveMethodELResolver()
  • Method Details

    • invoke

      public @Nullable Object invoke(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object method, Class<?> @Nullable [] paramTypes, @Nullable Object[] params)
      Overrides:
      invoke in class jakarta.el.ELResolver
    • getValue

      public @Nullable Object getValue(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property)
      Specified by:
      getValue in class jakarta.el.ELResolver
    • getType

      public @Nullable Class<?> getType(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property)
      Specified by:
      getType in class jakarta.el.ELResolver
    • setValue

      public void setValue(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property, @Nullable Object value)
      Specified by:
      setValue in class jakarta.el.ELResolver
    • isReadOnly

      public boolean isReadOnly(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property)
      Specified by:
      isReadOnly in class jakarta.el.ELResolver
    • getCommonPropertyType

      public @Nullable Class<?> getCommonPropertyType(jakarta.el.ELContext context, @Nullable Object base)
      Specified by:
      getCommonPropertyType in class jakarta.el.ELResolver