org.databene.commons.bean
Class PropertyAccessorFactory
java.lang.Object
org.databene.commons.bean.PropertyAccessorFactory
public class PropertyAccessorFactory
- extends java.lang.Object
Creates PropertyAccessors that are as efficient as possible depending on the information provided.
The fastest accessors are available when the bean class is provided with the property name.
property names may express navigation over refering JavaBean entities, e.g. 'category.name'.
A PropertyAccessor in a non-strict mode converts the invocation argument to the correct property type
and behaves quietly, if it doesn not find the specified property
Created: 06.01.2005 20:04:36
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAccessor
public static PropertyAccessor getAccessor(java.lang.String propertyName)
- Returns:
- a property accessor without knowledge about the bean type
(the slowest PropertyAccessor type) in strict mode.
getAccessor
public static PropertyAccessor getAccessor(java.lang.String propertyName,
boolean strict)
- Returns:
- a property accessor of the specified strictness.
getAccessor
public static PropertyAccessor getAccessor(java.lang.Class<?> beanClass,
java.lang.String propertyName)
- Returns:
- a property accessor in strict mode.
getAccessor
public static PropertyAccessor getAccessor(java.lang.Class<?> beanClass,
java.lang.String propertyName,
boolean strict)
- Returns:
- a property accessor of the specified strictness.
Copyright © 2010. All Rights Reserved.