Package org.cache2k.extra.config.generic
Class BeanPropertyAccessor
- java.lang.Object
-
- org.cache2k.extra.config.generic.BeanPropertyAccessor
-
- All Implemented Interfaces:
TargetPropertyAccessor
public class BeanPropertyAccessor extends Object implements TargetPropertyAccessor
- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description BeanPropertyAccessor(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccess(Object target, String propertyName)Collection<String>getNames()Class<?>getType(String propertyName)
-
-
-
Constructor Detail
-
BeanPropertyAccessor
public BeanPropertyAccessor(Class<?> clazz)
-
-
Method Detail
-
getNames
public Collection<String> getNames()
- Specified by:
getNamesin interfaceTargetPropertyAccessor
-
getType
public Class<?> getType(String propertyName)
- Specified by:
getTypein interfaceTargetPropertyAccessor
-
access
public Object access(Object target, String propertyName) throws InvocationTargetException, IllegalAccessException
- Specified by:
accessin interfaceTargetPropertyAccessor- Throws:
InvocationTargetExceptionIllegalAccessException
-
-