org.optaplanner.core.impl.domain.common
Class ReflectionPropertyAccessor
java.lang.Object
   org.optaplanner.core.impl.domain.common.ReflectionPropertyAccessor
org.optaplanner.core.impl.domain.common.ReflectionPropertyAccessor
- All Implemented Interfaces: 
- PropertyAccessor
- public final class ReflectionPropertyAccessor 
- extends Object- implements PropertyAccessor
Wraps PropertyDescriptor for faster and easier access.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ReflectionPropertyAccessor
public ReflectionPropertyAccessor(PropertyDescriptor propertyDescriptor)
getReadMethod
public Method getReadMethod()
- 
- Specified by:
- getReadMethodin interface- PropertyAccessor
 
- 
 
getWriteMethod
public Method getWriteMethod()
- 
- Specified by:
- getWriteMethodin interface- PropertyAccessor
 
- 
 
getName
public String getName()
- 
- Specified by:
- getNamein interface- PropertyAccessor
 
- 
 
getPropertyType
public Class<?> getPropertyType()
- 
- Specified by:
- getPropertyTypein interface- PropertyAccessor
 
- 
 
executeGetter
public Object executeGetter(Object bean)
- 
- Specified by:
- executeGetterin interface- PropertyAccessor
 
- 
 
executeSetter
public void executeSetter(Object bean,
                          Object value)
- 
- Specified by:
- executeSetterin interface- PropertyAccessor
 
- 
 
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.