Class ELResolvers

java.lang.Object
io.micronaut.el.resolver.ELResolvers

public final class ELResolvers extends Object
The factory of the standard resolver chain of the module.
Since:
1.0
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    static jakarta.el.ELResolver
    Creates the standard chain of resolvers, which starts with the bean introspections generated at compilation time and continues with the resolvers of the specification.
    static jakarta.el.ELResolver
    standard(io.micronaut.context.BeanDefinitionRegistry registry, jakarta.el.ELResolver... first)
    Creates the standard chain of resolvers for an application that has a bean context, which adds, between the introspections and the reflective invocation, the resolver reading the executable methods the beans of that context carry.
    static jakarta.el.ELResolver
    standard(jakarta.el.ELResolver... first)
    Creates the standard chain of resolvers, starting with the given resolvers.
    static List<jakarta.el.ELResolver>
    standardResolvers(io.micronaut.context.BeanDefinitionRegistry registry, jakarta.el.ELResolver... first)
    The resolvers of the standard chain of an application that has a bean context, in order, for a chain that adds resolvers in front of them.
    static List<jakarta.el.ELResolver>
    standardResolvers(jakarta.el.ELResolver... first)
    The resolvers of the standard chain, in order, for a chain that adds resolvers in front of them.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • standard

      public static jakarta.el.ELResolver standard()
      Creates the standard chain of resolvers, which starts with the bean introspections generated at compilation time and continues with the resolvers of the specification.
      Returns:
      The resolver chain
    • standard

      public static jakarta.el.ELResolver standard(jakarta.el.ELResolver... first)
      Creates the standard chain of resolvers, starting with the given resolvers.
      Parameters:
      first - The resolvers to consult first
      Returns:
      The resolver chain
    • standard

      public static jakarta.el.ELResolver standard(io.micronaut.context.BeanDefinitionRegistry registry, jakarta.el.ELResolver... first)
      Creates the standard chain of resolvers for an application that has a bean context, which adds, between the introspections and the reflective invocation, the resolver reading the executable methods the beans of that context carry.

      The registry is passed in rather than read from a static holder, so that an application running more than one bean context resolves a method in the context the expression is evaluated for. A io.micronaut.context.BeanContext is a registry; the narrower type is what the resolver needs, since it reads definitions and never looks a bean up.

      Parameters:
      registry - The registry whose definitions carry the executable methods
      first - The resolvers to consult first
      Returns:
      The resolver chain
    • standardResolvers

      public static List<jakarta.el.ELResolver> standardResolvers(jakarta.el.ELResolver... first)
      The resolvers of the standard chain, in order, for a chain that adds resolvers in front of them.
      Parameters:
      first - The resolvers to consult first
      Returns:
      The resolvers
    • standardResolvers

      public static List<jakarta.el.ELResolver> standardResolvers(io.micronaut.context.BeanDefinitionRegistry registry, jakarta.el.ELResolver... first)
      The resolvers of the standard chain of an application that has a bean context, in order, for a chain that adds resolvers in front of them.
      Parameters:
      registry - The registry whose definitions carry the executable methods
      first - The resolvers to consult first
      Returns:
      The resolvers