jetbrick-ioc/src/main/java/jetbrick/ioc/MutableIoc.java
public void addBean(String name, IocObject object) {
        Validate.notNull(name);
        Validate.notNull(object);

        log.debug("addBean: {}", name);

        if (pool.put(name, object) != null) {
            log.warn("Duplicated Bean: {}", name);
        }
    }
public void addBean(String name, IocObject object) {
        Validate.notNull(name);
        Validate.notNull(object);

        log.debug("addBean: {}", name);

        if (pool.put(name, object) != null) {
            log.warn("Duplicated Bean: {}", name);
        }
    }
public void addBean ( String name , IocObject object ) { Validate . notNull ( name ) ; Validate . notNull ( object ) ; log . debug ( "addBean: {}" , name ) ; if ( pool . put ( name , object ) != null ) { log . warn ( "Duplicated Bean: {}" , name ) ; } }
添加用户自定义的对象
添加用户自定义的对象