Class IntrospectionELResolver
java.lang.Object
jakarta.el.ELResolver
io.micronaut.el.resolver.IntrospectionELResolver
@Internal
public final class IntrospectionELResolver
extends jakarta.el.ELResolver
The
ELResolver resolving the types annotated with Introspected
through the bean introspection generated for them at compilation time.
The properties are read and written through the generated BeanIntrospection, so no reflection is
used. The methods annotated with io.micronaut.context.annotation.Executable are invoked the same way;
the other methods are left to the rest of the chain. A type without an introspection is left unresolved, so
that the standard resolvers of the specification can handle it.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a resolver using the shared introspector.IntrospectionELResolver(boolean readOnly) IntrospectionELResolver(io.micronaut.core.beans.BeanIntrospector introspector, boolean readOnly) -
Method Summary
Modifier and TypeMethodDescription@Nullable Class<?> getCommonPropertyType(jakarta.el.ELContext context, @Nullable Object base) @Nullable Class<?> @Nullable Object@Nullable Objectinvoke(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object method, Class<?> @Nullable [] paramTypes, Object @Nullable [] params) booleanisReadOnly(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property) voidsetValue(jakarta.el.ELContext context, @Nullable Object base, @Nullable Object property, @Nullable Object value) Methods inherited from class jakarta.el.ELResolver
convertToType
-
Constructor Details
-
IntrospectionELResolver
public IntrospectionELResolver()Creates a resolver using the shared introspector. -
IntrospectionELResolver
public IntrospectionELResolver(boolean readOnly) - Parameters:
readOnly- Whether the resolver should reject the assignment of properties
-
IntrospectionELResolver
public IntrospectionELResolver(io.micronaut.core.beans.BeanIntrospector introspector, boolean readOnly) - Parameters:
introspector- The introspectorreadOnly- Whether the resolver should reject the assignment of properties
-
-
Method Details
-
getValue
-
getType
-
setValue
-
isReadOnly
-
invoke
-
getCommonPropertyType
-