All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.andromedaioc.bean.param.SetterAccessorWrapper Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy