com.jquicker.context.bean.Bean Maven / Gradle / Ivy
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