net.sf.andromedaioc.bean.param.SetterAccessorWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromeda-ioc Show documentation
Show all versions of andromeda-ioc Show documentation
Inversion of Control Framework for Android
The newest version!
package net.sf.andromedaioc.bean.param;
import java.lang.reflect.Method;
/**
* Wrap setter accessor
*
* @author Alexey Mitrov
*/
public class SetterAccessorWrapper implements AccessorWrapper {
private Method method;
/**
* Create new setter access wrapper
*
* @param method
*/
public SetterAccessorWrapper(Method method) {
this.method = method;
}
public void set(Object target, Object value) throws Exception {
method.invoke(target, value);
}
}