当前位置: 首页>>代码示例>>Java>>正文


Java MethodResolver类代码示例

本文整理汇总了Java中org.apache.ibatis.builder.annotation.MethodResolver的典型用法代码示例。如果您正苦于以下问题:Java MethodResolver类的具体用法?Java MethodResolver怎么用?Java MethodResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MethodResolver类属于org.apache.ibatis.builder.annotation包,在下文中一共展示了MethodResolver类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: parse

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public void parse() {
    String resource = type.toString();
    if (!configuration.isResourceLoaded(resource)) {
        boolean existXml = loadXmlResource();
        configuration.addLoadedResource(resource);
        assistant.setCurrentNamespace(type.getName());
        parseCache();
        parseCacheRef();
        Method[] methods = type.getMethods();
        // TODO 注入存在 xxMapper.xml CURD (应该在注解之前注入)
        inspectInject(existXml);
        for (Method method : methods) {
            try {
                // issue #237
                if (!method.isBridge()) {
                    parseStatement(method);
                }
            } catch (IncompleteElementException e) {
                configuration.addIncompleteMethod(new MethodResolver(this, method));
            }
        }
    }
    parsePendingMethods();
}
 
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:25,代码来源:MybatisMapperAnnotationBuilder.java

示例2: parsePendingMethods

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
private void parsePendingMethods() {
    Collection<MethodResolver> incompleteMethods = configuration.getIncompleteMethods();
    synchronized (incompleteMethods) {
        Iterator<MethodResolver> iter = incompleteMethods.iterator();
        while (iter.hasNext()) {
            try {
                iter.next().resolve();
                iter.remove();
            } catch (IncompleteElementException e) {
                // This method is still missing a resource
            }
        }
    }
}
 
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:15,代码来源:MybatisMapperAnnotationBuilder.java

示例3: parse

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
@Override
public void parse() {
    String resource = type.toString();
    if (!configuration.isResourceLoaded(resource)) {
        loadXmlResource();
        configuration.addLoadedResource(resource);
        assistant.setCurrentNamespace(type.getName());
        parseCache();
        parseCacheRef();
        Method[] methods = type.getMethods();
        // TODO 注入 CURD 动态 SQL (应该在注解之前注入)
        if (BaseMapper.class.isAssignableFrom(type)) {
            GlobalConfigUtils.getSqlInjector(configuration).inspectInject(assistant, type);
        }
        for (Method method : methods) {
            try {
                // issue #237
                if (!method.isBridge()) {
                    parseStatement(method);
                }
            } catch (IncompleteElementException e) {
                configuration.addIncompleteMethod(new MethodResolver(this, method));
            }
        }
    }
    parsePendingMethods();
}
 
开发者ID:baomidou,项目名称:mybatis-plus,代码行数:28,代码来源:MybatisMapperAnnotationBuilder.java

示例4: addIncompleteMethod

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public void addIncompleteMethod(MethodResolver builder) {
  incompleteMethods.add(builder);
}
 
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:4,代码来源:Configuration.java

示例5: getIncompleteMethods

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public Collection<MethodResolver> getIncompleteMethods() {
  return incompleteMethods;
}
 
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:4,代码来源:Configuration.java

示例6: addIncompleteMethod

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public void addIncompleteMethod(MethodResolver builder) {
	incompleteMethods.add(builder);
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:4,代码来源:Configuration.java

示例7: getIncompleteMethods

import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public Collection<MethodResolver> getIncompleteMethods() {
	return incompleteMethods;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:4,代码来源:Configuration.java


注:本文中的org.apache.ibatis.builder.annotation.MethodResolver类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。