Class CommonELResolver
java.lang.Object
jakarta.el.ELResolver
io.micronaut.el.resolver.CommonELResolver
- All Implemented Interfaces:
io.micronaut.core.order.Ordered, ELMethodExecutor
@Internal
public final class CommonELResolver
extends jakarta.el.ELResolver
implements ELMethodExecutor
Resolves the common JDK member operations without reflective invocation.
This resolver is intentionally small and only handles operations whose receiver and signature are unambiguous from the runtime type. All other operations continue through the regular resolver chain. It is placed after user resolvers, so applications can still override any of these operations.
- Since:
- 1.1
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Class<?> getCommonPropertyType(jakarta.el.ELContext context, @Nullable Object base) intgetOrder()Returns the executor order.@Nullable Class<?> @Nullable Object@Nullable Objectinvoke(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object method, Class<?> @Nullable [] paramTypes, @Nullable Object[] params) booleanisReadOnly(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property) @Nullable ELMethodresolve(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object method, io.micronaut.core.type.Argument<?> @Nullable [] argumentTypes, Object @Nullable [] arguments) Resolves an instance or static method, or a constructor represented by<init>.voidsetValue(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property, @Nullable Object value) Methods inherited from class jakarta.el.ELResolver
convertToTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ELMethodExecutor
isReflective, resolveFunction
-
Constructor Details
-
CommonELResolver
public CommonELResolver()
-
-
Method Details
-
getOrder
public int getOrder()Description copied from interface:ELMethodExecutorReturns the executor order. Lower values run first, following the MicronautOrderedcontract, so direct/generated implementations can take precedence over a general fallback such as reflection.- Specified by:
getOrderin interfaceELMethodExecutor- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered- Returns:
- The order, zero by default
-
getValue
-
getType
-
invoke
-
resolve
public @Nullable ELMethod resolve(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object method, io.micronaut.core.type.Argument<?> @Nullable [] argumentTypes, Object @Nullable [] arguments) Description copied from interface:ELMethodExecutorResolves an instance or static method, or a constructor represented by<init>.- Specified by:
resolvein interfaceELMethodExecutor- Parameters:
context- The EL contextbase- The instance, or anELClassfor a static method or constructormethod- The method nameargumentTypes- The parameter types supplied when the method expression was created, ornullarguments- The evaluated arguments, ornull- Returns:
- The resolved method, or
nullwhen this executor does not handle it
-
setValue
-
isReadOnly
-
getCommonPropertyType
-