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

org.sfm.reflect.MethodPropertyMeta Maven / Gradle / Ivy

package org.sfm.reflect;

import java.lang.reflect.Method;

public class MethodPropertyMeta extends PropertyMeta {

	private final Method method;

	public MethodPropertyMeta(String name, ReflectionService reflectService, Method method) {
		super(name, reflectService);
		this.method = method;
	}

	@Override
	protected Setter newSetter() {
		return reflectService.getSetterFactory().getMethodSetter(method);
	}

	@SuppressWarnings("unchecked")
	@Override
	public Class getType() {
		return (Class) method.getParameterTypes()[0];
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy