Class SmartEnvironmentAccessor
java.lang.Object
org.springframework.geode.expression.SmartEnvironmentAccessor
- All Implemented Interfaces:
org.springframework.expression.PropertyAccessor
public class SmartEnvironmentAccessor
extends Object
implements org.springframework.expression.PropertyAccessor
Spring
PropertyAccessor
implementation that knows how to access properties
from Environment
and EnvironmentCapable
objects.- Since:
- 1.3.1
- See Also:
-
Environment
EnvironmentCapable
PropertyAccessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static SmartEnvironmentAccessor
create()
Factory method used to construct a new instance ofSmartEnvironmentAccessor
.Class<?>[]
org.springframework.expression.TypedValue
void
-
Constructor Details
-
SmartEnvironmentAccessor
public SmartEnvironmentAccessor()
-
-
Method Details
-
create
Factory method used to construct a new instance ofSmartEnvironmentAccessor
.- Returns:
- a new instance of
SmartEnvironmentAccessor
.
-
getSpecificTargetClasses
- Specified by:
getSpecificTargetClasses
in interfaceorg.springframework.expression.PropertyAccessor
-
canRead
public boolean canRead(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) - Specified by:
canRead
in interfaceorg.springframework.expression.PropertyAccessor
-
read
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) - Specified by:
read
in interfaceorg.springframework.expression.PropertyAccessor
-
canWrite
public boolean canWrite(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) - Specified by:
canWrite
in interfaceorg.springframework.expression.PropertyAccessor
- Returns:
- false.
-
write
public void write(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) - Specified by:
write
in interfaceorg.springframework.expression.PropertyAccessor
-