spring-framework / org.springframework.context.expression / EnvironmentAccessor

EnvironmentAccessor

open class EnvironmentAccessor : PropertyAccessor

Read-only EL property accessor that knows how to retrieve keys of a Spring Environment instance.

Author
Chris Beams

Since
3.1

Constructors

<init>

EnvironmentAccessor()

Read-only EL property accessor that knows how to retrieve keys of a Spring Environment instance.

Functions

canRead

open fun canRead(context: EvaluationContext, target: Any, name: String): Boolean

Can read any Environment, thus always returns true.

canWrite

open fun canWrite(context: EvaluationContext, target: Any, name: String): Boolean

Read-only: returns false.

getSpecificTargetClasses

open fun getSpecificTargetClasses(): Array<Class<*>>

read

open fun read(context: EvaluationContext, target: Any, name: String): TypedValue

Access the given target object by resolving the given property name against the given target environment.

write

open fun write(context: EvaluationContext, target: Any, name: String, newValue: Any): Unit

Read-only: no-op.