Example usage for org.apache.ibatis.builder CacheRefResolver resolveCacheRef

List of usage examples for org.apache.ibatis.builder CacheRefResolver resolveCacheRef

Introduction

In this page you can find the example usage for org.apache.ibatis.builder CacheRefResolver resolveCacheRef.

Prototype

public Cache resolveCacheRef() 

Source Link

Usage

From source file:com.baomidou.mybatisplus.MybatisXMLMapperBuilder.java

License:Apache License

private void cacheRefElement(XNode context) {
    if (context != null) {
        configuration.addCacheRef(builderAssistant.getCurrentNamespace(),
                context.getStringAttribute("namespace"));
        CacheRefResolver cacheRefResolver = new CacheRefResolver(builderAssistant,
                context.getStringAttribute("namespace"));
        try {//ww  w  .  j  a  v  a2  s.  c o  m
            cacheRefResolver.resolveCacheRef();
        } catch (IncompleteElementException e) {
            configuration.addIncompleteCacheRef(cacheRefResolver);
        }
    }
}