org.apache.tapestry.bean
Class BeanProviderPropertyAccessor
java.lang.Object
ognl.ObjectPropertyAccessor
org.apache.tapestry.bean.BeanProviderPropertyAccessor
- All Implemented Interfaces:
- PropertyAccessor
public class BeanProviderPropertyAccessor
- extends ObjectPropertyAccessor
- implements PropertyAccessor
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 |
Object |
getProperty(Map context,
Object target,
Object name)
Checks to see if the name matches the name of a bean inside
the provider and returns that bean if so. |
Class |
getPropertyClass(OgnlContext context,
Object target,
Object name)
|
String |
getSourceAccessor(OgnlContext context,
Object target,
Object name)
|
String |
getSourceSetter(OgnlContext context,
Object target,
Object name)
|
boolean |
hasGetProperty(Map 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 |
BeanProviderPropertyAccessor
public BeanProviderPropertyAccessor()
getProperty
public Object getProperty(Map context,
Object target,
Object name)
throws 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 PropertyAccessor
- Overrides:
getProperty
in class ObjectPropertyAccessor
- Throws:
OgnlException
hasGetProperty
public boolean hasGetProperty(Map 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
getPropertyClass
public Class getPropertyClass(OgnlContext context,
Object target,
Object name)
- Overrides:
getPropertyClass
in class ObjectPropertyAccessor
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 © 2006-2008 Apache Software Foundation. All Rights Reserved.