org.apache.commons.ognl.test.objects
Class BeanProviderAccessor
java.lang.Object
org.apache.commons.ognl.ObjectPropertyAccessor
org.apache.commons.ognl.test.objects.BeanProviderAccessor
- All Implemented Interfaces:
- PropertyAccessor
public class BeanProviderAccessor
- extends ObjectPropertyAccessor
- implements PropertyAccessor
Implementation of provider that works with BeanProvider
instances.
Method Summary |
Object |
getProperty(Map<String,Object> context,
Object target,
Object name)
|
String |
getSourceAccessor(OgnlContext context,
Object target,
Object name)
|
String |
getSourceSetter(OgnlContext context,
Object target,
Object name)
|
boolean |
hasGetProperty(Map<String,Object> context,
Object target,
Object oname)
Returns true if the name matches a bean provided by the provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanProviderAccessor
public BeanProviderAccessor()
getProperty
public Object getProperty(Map<String,Object> context,
Object target,
Object name)
throws OgnlException
- Specified by:
getProperty
in interface PropertyAccessor
- Overrides:
getProperty
in class ObjectPropertyAccessor
- Throws:
OgnlException
hasGetProperty
public boolean hasGetProperty(Map<String,Object> context,
Object target,
Object oname)
throws OgnlException
- Returns true if the name matches a bean provided by the provider. Otherwise invokes the super implementation.
- Overrides:
hasGetProperty
in class ObjectPropertyAccessor
- Throws:
OgnlException
getSourceAccessor
public String getSourceAccessor(OgnlContext context,
Object target,
Object name)
- Specified by:
getSourceAccessor
in interface PropertyAccessor
- Overrides:
getSourceAccessor
in class ObjectPropertyAccessor
getSourceSetter
public String getSourceSetter(OgnlContext context,
Object target,
Object name)
- Specified by:
getSourceSetter
in interface PropertyAccessor
- Overrides:
getSourceSetter
in class ObjectPropertyAccessor
Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.