public class TilesContextPropertyAccessorDelegateFactory extends Object implements PropertyAccessorDelegateFactory<TilesRequestContext>
PropertyAccessor
for the given property name
and TilesRequestContext
.Constructor and Description |
---|
TilesContextPropertyAccessorDelegateFactory(org.apache.commons.ognl.PropertyAccessor objectPropertyAccessor,
org.apache.commons.ognl.PropertyAccessor applicationContextPropertyAccessor,
org.apache.commons.ognl.PropertyAccessor requestScopePropertyAccessor,
org.apache.commons.ognl.PropertyAccessor sessionScopePropertyAccessor,
org.apache.commons.ognl.PropertyAccessor applicationScopePropertyAccessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.ognl.PropertyAccessor |
getPropertyAccessor(String propertyName,
TilesRequestContext request)
Returns a prooerty accessor appropriate for the property name and the
object passed.
|
public TilesContextPropertyAccessorDelegateFactory(org.apache.commons.ognl.PropertyAccessor objectPropertyAccessor, org.apache.commons.ognl.PropertyAccessor applicationContextPropertyAccessor, org.apache.commons.ognl.PropertyAccessor requestScopePropertyAccessor, org.apache.commons.ognl.PropertyAccessor sessionScopePropertyAccessor, org.apache.commons.ognl.PropertyAccessor applicationScopePropertyAccessor)
objectPropertyAccessor
- The plain object property accessor, to be
used directly for TilesRequestContext
.applicationContextPropertyAccessor
- The application context
property accessor.requestScopePropertyAccessor
- The request scope property accessor.sessionScopePropertyAccessor
- The session scope property accessor.applicationScopePropertyAccessor
- The application scope property
accessor.public org.apache.commons.ognl.PropertyAccessor getPropertyAccessor(String propertyName, TilesRequestContext request)
getPropertyAccessor
in interface PropertyAccessorDelegateFactory<TilesRequestContext>
propertyName
- The name of the property.request
- The root object to evaluate.Copyright © 2017. All rights reserved.