|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.context.expression.EnvironmentAccessor
public class EnvironmentAccessor
Read-only EL property accessor that knows how to retrieve keys
of a Spring Environment instance.
| Constructor Summary | |
|---|---|
EnvironmentAccessor()
|
|
| Method Summary | |
|---|---|
boolean |
canRead(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Can read any Environment, thus always returns true. |
boolean |
canWrite(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Read only. |
java.lang.Class<?>[] |
getSpecificTargetClasses()
|
org.springframework.expression.TypedValue |
read(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Access the given target object by resolving the given property name against the given target environment. |
void |
write(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue)
Read only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnvironmentAccessor()
| Method Detail |
|---|
public java.lang.Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessor
public boolean canRead(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
throws org.springframework.expression.AccessException
Environment, thus always returns true.
canRead in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessException
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
throws org.springframework.expression.AccessException
read in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessException
public boolean canWrite(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
throws org.springframework.expression.AccessException
canWrite in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessException
public void write(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue)
throws org.springframework.expression.AccessException
write in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessException
|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||