If the base object is a map, attempts to set the value associated with
the given key, as specified by the
property
argument.
If the base is a Map
, the propertyResolved
property of the ELContext
object must be set to
true
by this resolver, before returning. If this property
is not true
after this method is called, the caller
can safely assume no value was set.
If this resolver was constructed in read-only mode, this method will
always throw PropertyNotWritableException
.
If a Map
was created using
java.util.Collections#unmodifiableMap, this method must
throw PropertyNotWritableException
. Unfortunately,
there is no Collections API method to detect this. However, an
implementation can create a prototype unmodifiable Map
and query its runtime type to see if it matches the runtime type of
the base object as a workaround.