org.springjutsu.validation.spel
Class ReadCheckingMapAdaptablePropertyAccessor

java.lang.Object
  extended by org.springframework.webflow.expression.spel.MapAdaptablePropertyAccessor
      extended by org.springjutsu.validation.spel.ReadCheckingMapAdaptablePropertyAccessor
All Implemented Interfaces:
org.springframework.expression.PropertyAccessor

public class ReadCheckingMapAdaptablePropertyAccessor
extends org.springframework.webflow.expression.spel.MapAdaptablePropertyAccessor

Workaround for SWF-1472: super.canRead always returns true.

Author:
Clark Duplichien *

Constructor Summary
ReadCheckingMapAdaptablePropertyAccessor()
           
 
Method Summary
 boolean canRead(org.springframework.expression.EvaluationContext context, Object target, String name)
          Do a check instead of always returning true.
 
Methods inherited from class org.springframework.webflow.expression.spel.MapAdaptablePropertyAccessor
canWrite, getSpecificTargetClasses, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadCheckingMapAdaptablePropertyAccessor

public ReadCheckingMapAdaptablePropertyAccessor()
Method Detail

canRead

public boolean canRead(org.springframework.expression.EvaluationContext context,
                       Object target,
                       String name)
                throws org.springframework.expression.AccessException
Do a check instead of always returning true.

Specified by:
canRead in interface org.springframework.expression.PropertyAccessor
Overrides:
canRead in class org.springframework.webflow.expression.spel.MapAdaptablePropertyAccessor
Throws:
org.springframework.expression.AccessException


Copyright © 2013 Spring Jutsu. All Rights Reserved.