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

com.jquicker.context.bean.Bean Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.jquicker.context.bean;

/**
 * @author OL
 */
public class Bean {
	
	private T object;
	private T proxy;
	private String beanName;

	public T getObject() {
		return object;
	}

	public void setObject(T object) {
		this.object = object;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public T getProxy() {
		return proxy;
	}

	public void setProxy(T proxy) {
		this.proxy = proxy;
	}

	public Class getType() {
		return getBean().getClass();
	}
	
	public T getBean() {
		return proxy == null ? object : proxy;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy