com.google.inject.internal.Annotations.checkForMisplacedScopeAnnotations()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(142)

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

Annotations.checkForMisplacedScopeAnnotations介绍

[英]Adds an error if there is a misplaced annotations on type. Scoping annotations are not allowed on abstract classes or interfaces.
[中]如果类型上的批注放错了位置,则添加错误。抽象类或接口上不允许使用范围标注。

代码示例

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

private <T> void validateKey(Object source, Key<T> key) {
 Annotations.checkForMisplacedScopeAnnotations(
   key.getTypeLiteral().getRawType(), source, errors);
}

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

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

private <T> void validateKey(Object source, Key<T> key) {
 Annotations.checkForMisplacedScopeAnnotations(
   key.getTypeLiteral().getRawType(), source, errors);
}

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

private <T> void validateKey(Object source, Key<T> key) {
 Annotations.checkForMisplacedScopeAnnotations(
   key.getTypeLiteral().getRawType(), source, errors);
}

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

private <T> void validateKey(Object source, Key<T> key) {
 Annotations.checkForMisplacedScopeAnnotations(
   key.getTypeLiteral().getRawType(), source, errors);
}

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

private <T> void validateKey(Object source, Key<T> key) {
 Annotations.checkForMisplacedScopeAnnotations(
   key.getTypeLiteral().getRawType(), source, errors);
}

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

private <T> void validateKey(Object source, Key<T> key) {
 Annotations.checkForMisplacedScopeAnnotations(
   key.getTypeLiteral().getRawType(), source, errors);
}

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

private <T> void validateKey(Object source, Key<T> key) {
  Annotations.checkForMisplacedScopeAnnotations(
      key.getTypeLiteral().getRawType(), source, errors);
}

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

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

Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createImplementedByBinding(key, scoping, implementedBy, errors);
Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors);
return createProvidedByBinding(key, scoping, providedBy, errors);

相关文章