com.google.inject.spi.Message.getSource()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中com.google.inject.spi.Message.getSource()方法的一些代码示例,展示了Message.getSource()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getSource()方法的具体详情如下:
包路径:com.google.inject.spi.Message
类名称:Message
方法名:getSource

Message.getSource介绍

[英]Gets the source of the configuration which resulted in this error message.
[中]获取导致此错误消息的配置的源。

代码示例

代码示例来源:origin: com.google.inject/guice

@Override
 public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
}.sortedCopy(root.errors);

代码示例来源:origin: com.google.inject/guice

/** @since 2.0 */
@Override
public void applyTo(Binder binder) {
 binder.withSource(getSource()).addError(this);
}

代码示例来源:origin: org.xbib/guice

@Override
  public int compare(Message a, Message b) {
    return a.getSource().compareTo(b.getSource());
  }
}.sortedCopy(root.errors);

代码示例来源:origin: org.guiceyfruit/guiceyfruit-core

public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
});

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.inject

public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
});

代码示例来源:origin: com.google/inject

public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
});

代码示例来源:origin: org.sonatype.sisu/sisu-guice

@Override
 public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
}.sortedCopy(root.errors);

代码示例来源:origin: com.jwebmp.inject/guice

@Override
 public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
}.sortedCopy(root.errors);

代码示例来源:origin: Nextdoor/bender

public int compare(Message a, Message b) {
  return a.getSource().compareTo(b.getSource());
 }
});

代码示例来源:origin: com.jwebmp.inject/guice

/** @since 2.0 */
@Override
public void applyTo(Binder binder) {
 binder.withSource(getSource()).addError(this);
}

代码示例来源:origin: org.sonatype.sisu/sisu-guice

/** @since 2.0 */
@Override
public void applyTo(Binder binder) {
 binder.withSource(getSource()).addError(this);
}

代码示例来源:origin: Nextdoor/bender

/** @since 2.0 */
public void applyTo(Binder binder) {
 binder.withSource(getSource()).addError(this);
}

代码示例来源:origin: com.google/inject

/** @since 2.0 */
public void applyTo(Binder binder) {
 binder.withSource(getSource()).addError(this);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.inject

/** @since 2.0 */
public void applyTo(Binder binder) {
 binder.withSource(getSource()).addError(this);
}

代码示例来源:origin: org.xbib/guice

public void applyTo(Binder binder) {
  binder.withSource(getSource()).addError(this);
}

相关文章