美文网首页
2019-12-18

2019-12-18

作者: Hellohcl | 来源:发表于2020-04-13 10:32 被阅读0次

    public class AtomikosDataSourceBeanextends com.atomikos.jdbc.AtomikosDataSourceBean

    implements BeanNameAware, InitializingBean, DisposableBean {

    private StringbeanName;

    @Override

      public void setBeanName(String name) {

    this.beanName = name;

    }

    @Override

      public void afterPropertiesSet()throws Exception {

    if (!StringUtils.hasLength(getUniqueResourceName())) {

    setUniqueResourceName(this.beanName);

    }

    init();

    }

    @Override

      public void destroy()throws Exception {

    close();

    }

    }

    相关文章

      网友评论

          本文标题:2019-12-18

          本文链接:https://www.haomeiwen.com/subject/nrzynctx.html