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

org.webpieces.plugins.properties.beans.PropertyInfo Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.webpieces.plugins.properties.beans;

import java.lang.reflect.Method;

public class PropertyInfo {

	private String name;
	private Method getter;
	private Method setter;
	private Object injectee;

	public PropertyInfo(String propertyName, Object injectee, Method getter, Method setter) {
		this.name = propertyName;
		this.injectee = injectee;
		this.getter = getter;
		this.setter = setter;
	}

	public String getName() {
		return name;
	}

	public Method getGetter() {
		return getter;
	}

	public Method getSetter() {
		return setter;
	}
	
	public boolean isReadOnly() {
		if(setter == null)
			return true;
		return false;
	}

	public Object getInjectee() {
		return injectee;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy