Open Source Repository

Home /ibatis/ibatis-sqlmap-3.0-beta8 | Repository Home



org/apache/ibatis/reflection/invoker/SetFieldInvoker.java
package org.apache.ibatis.reflection.invoker;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;

public class SetFieldInvoker implements Invoker {
  private Field field;

  public SetFieldInvoker(Field field) {
    this.field = field;
  }

  public Object invoke(Object target, Object[] argsthrows IllegalAccessException, InvocationTargetException {
    field.set(target, args[0]);
    return null;
  }

  public Class getType() {
    return field.getType();
  }
}