本文整理汇总了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();
}
示例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
}
}
}
}
示例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();
}
示例4: addIncompleteMethod
import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public void addIncompleteMethod(MethodResolver builder) {
incompleteMethods.add(builder);
}
示例5: getIncompleteMethods
import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public Collection<MethodResolver> getIncompleteMethods() {
return incompleteMethods;
}
示例6: addIncompleteMethod
import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public void addIncompleteMethod(MethodResolver builder) {
incompleteMethods.add(builder);
}
示例7: getIncompleteMethods
import org.apache.ibatis.builder.annotation.MethodResolver; //导入依赖的package包/类
public Collection<MethodResolver> getIncompleteMethods() {
return incompleteMethods;
}