Search in sources :

Example 1 with CacheRefResolver

use of org.apache.ibatis.builder.CacheRefResolver in project mybatis-3 by mybatis.

the class XMLMapperBuilder method cacheRefElement.

private void cacheRefElement(XNode context) {
    if (context != null) {
        configuration.addCacheRef(builderAssistant.getCurrentNamespace(), context.getStringAttribute("namespace"));
        CacheRefResolver cacheRefResolver = new CacheRefResolver(builderAssistant, context.getStringAttribute("namespace"));
        try {
            cacheRefResolver.resolveCacheRef();
        } catch (IncompleteElementException e) {
            configuration.addIncompleteCacheRef(cacheRefResolver);
        }
    }
}
Also used : CacheRefResolver(org.apache.ibatis.builder.CacheRefResolver) IncompleteElementException(org.apache.ibatis.builder.IncompleteElementException)

Aggregations

CacheRefResolver (org.apache.ibatis.builder.CacheRefResolver)1 IncompleteElementException (org.apache.ibatis.builder.IncompleteElementException)1