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

com.blade.ioc.bean.BeanDefine Maven / Gradle / Ivy

There is a newer version: 2.0.15.RELEASE
Show newest version
package com.blade.ioc.bean;

/**
 * Bean Define, IOC to define a target
 *
 * @author biezhi
 * @since 1.5
 */
public class BeanDefine {

    private Object bean;
    private Class type;
    private boolean isSingle;

    public BeanDefine(Object bean) {
        this(bean, bean.getClass());
    }

    public BeanDefine(Object bean, Class type) {
        this.bean = bean;
        this.type = type;
        this.isSingle = true;
    }

    public BeanDefine(Object bean, Class type, boolean isSingle) {
        this.bean = bean;
        this.type = type;
        this.isSingle = isSingle;
    }

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    public Class getType() {
        return type;
    }

    public void setType(Class type) {
        this.type = type;
    }

    public boolean isSingle() {
        return isSingle;
    }

    public void setSignle(boolean isSingle) {
        this.isSingle = isSingle;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy