org.apache.tapestry.bean
Class BeanProviderPropertyAccessor
java.lang.Object
ognl.ObjectPropertyAccessor
org.apache.tapestry.bean.BeanProviderPropertyAccessor
- All Implemented Interfaces:
- ognl.PropertyAccessor
public class BeanProviderPropertyAccessor
- extends ognl.ObjectPropertyAccessor
Adapts a IBeanProvider
to
OGNL by exposing the named
beans provided by the provider as read-only properties of
the provider.
This is registered by AbstractComponent
.
- Since:
- 2.2
- Author:
- Howard Lewis Ship
Method Summary |
java.lang.Object |
getProperty(java.util.Map context,
java.lang.Object target,
java.lang.Object name)
Checks to see if the name matches the name of a bean inside
the provider and returns that bean if so. |
boolean |
hasGetProperty(java.util.Map context,
java.lang.Object target,
java.lang.Object oname)
Returns true if the name matches a bean provided by the provider. |
Methods inherited from class ognl.ObjectPropertyAccessor |
getPossibleProperty, hasGetProperty, hasSetProperty, hasSetProperty, setPossibleProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanProviderPropertyAccessor
public BeanProviderPropertyAccessor()
getProperty
public java.lang.Object getProperty(java.util.Map context,
java.lang.Object target,
java.lang.Object name)
throws ognl.OgnlException
- Checks to see if the name matches the name of a bean inside
the provider and returns that bean if so.
Otherwise, invokes the super implementation.
- Specified by:
getProperty
in interface ognl.PropertyAccessor
- Overrides:
getProperty
in class ognl.ObjectPropertyAccessor
- Throws:
ognl.OgnlException
hasGetProperty
public boolean hasGetProperty(java.util.Map context,
java.lang.Object target,
java.lang.Object oname)
throws ognl.OgnlException
- Returns true if the name matches a bean provided by the provider.
Otherwise invokes the super implementation.
- Overrides:
hasGetProperty
in class ognl.ObjectPropertyAccessor
- Throws:
ognl.OgnlException