org.drools.planner.core.domain.common
Class ReflectionPropertyAccessor
java.lang.Object
org.drools.planner.core.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:
getReadMethod
in interface PropertyAccessor
getWriteMethod
public Method getWriteMethod()
- Specified by:
getWriteMethod
in interface PropertyAccessor
getName
public String getName()
- Specified by:
getName
in interface PropertyAccessor
getPropertyType
public Class<?> getPropertyType()
- Specified by:
getPropertyType
in interface PropertyAccessor
executeGetter
public Object executeGetter(Object bean)
- Specified by:
executeGetter
in interface PropertyAccessor
executeSetter
public void executeSetter(Object bean,
Object value)
- Specified by:
executeSetter
in interface PropertyAccessor
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.