Package org.cache2k.extra.config.generic
Class BeanPropertyMutator
- java.lang.Object
-
- org.cache2k.extra.config.generic.BeanPropertyMutator
-
- All Implemented Interfaces:
TargetPropertyMutator
public class BeanPropertyMutator extends Object implements TargetPropertyMutator
Scans all setters on target type and provides mutation method.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description BeanPropertyMutator(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getNames()Class<?>getType(String propertyName)voidmutate(Object target, String propertyName, Object value)
-
-
-
Constructor Detail
-
BeanPropertyMutator
public BeanPropertyMutator(Class<?> clazz)
-
-
Method Detail
-
getNames
public Collection<String> getNames()
- Specified by:
getNamesin interfaceTargetPropertyMutator
-
getType
public Class<?> getType(String propertyName)
- Specified by:
getTypein interfaceTargetPropertyMutator
-
mutate
public void mutate(Object target, String propertyName, Object value) throws IllegalAccessException, InvocationTargetException
- Specified by:
mutatein interfaceTargetPropertyMutator- Throws:
IllegalAccessExceptionInvocationTargetException
-
-