org.jboss.weld.resolution.QualifierInstance.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(68)

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

QualifierInstance.<init>介绍

[英]Constructs a qualifier instance without any checks. This method should be used with care.
[中]在不进行任何检查的情况下构造限定符实例。这种方法应该小心使用。

代码示例

代码示例来源:origin: weld/core

/**
 * @param annotation
 * @param store
 * @return a new qualifier instance for the given annotation
 */
public static QualifierInstance of(Annotation annotation, MetaAnnotationStore store) {
  Class<? extends Annotation> annotationType = annotation.annotationType();
  if (Any.class == annotationType) {
    return ANY;
  } else if (Default.class == annotationType) {
    return DEFAULT;
  } else if (Named.class == annotationType) {
    Named named = (Named) annotation;
    return new QualifierInstance(annotationType, ImmutableMap.of("value", named.value()));
  } else {
    return new QualifierInstance(annotationType, createValues(annotation, store));
  }
}

代码示例来源:origin: weld/core

/**
 * @param annotation
 * @param store
 * @return a new qualifier instance for the given annotation
 */
public static QualifierInstance of(Annotation annotation, MetaAnnotationStore store) {
  Class<? extends Annotation> annotationType = annotation.annotationType();
  if (Any.class == annotationType) {
    return ANY;
  } else if (Default.class == annotationType) {
    return DEFAULT;
  } else if (Named.class == annotationType) {
    Named named = (Named) annotation;
    return new QualifierInstance(annotationType, ImmutableMap.of("value", named.value()));
  } else {
    return new QualifierInstance(annotationType, createValues(annotation, store));
  }
}

代码示例来源:origin: org.jboss.weld.se/weld-se

/**
 * @param annotation
 * @param store
 * @return a new qualifier instance for the given annotation
 */
public static QualifierInstance of(Annotation annotation, MetaAnnotationStore store) {
  Class<? extends Annotation> annotationType = annotation.annotationType();
  if (Any.class == annotationType) {
    return ANY;
  } else if (Default.class == annotationType) {
    return DEFAULT;
  } else if (Named.class == annotationType) {
    Named named = (Named) annotation;
    return new QualifierInstance(annotationType, ImmutableMap.<String, Object>of("value", named.value()));
  } else {
    return new QualifierInstance(annotationType, createValues(annotation, store));
  }
}

代码示例来源:origin: weld/core

/**
 * @param annotation
 * @param store
 * @return a new qualifier instance for the given annotation
 */
public static QualifierInstance of(Annotation annotation, MetaAnnotationStore store) {
  Class<? extends Annotation> annotationType = annotation.annotationType();
  if (Any.class == annotationType) {
    return ANY;
  } else if (Default.class == annotationType) {
    return DEFAULT;
  } else if (Named.class == annotationType) {
    Named named = (Named) annotation;
    return new QualifierInstance(annotationType, ImmutableMap.of("value", named.value()));
  } else {
    return new QualifierInstance(annotationType, createValues(annotation, store));
  }
}

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

/**
 * @param annotation
 * @param store
 * @return a new qualifier instance for the given annotation
 */
public static QualifierInstance of(Annotation annotation, MetaAnnotationStore store) {
  Class<? extends Annotation> annotationType = annotation.annotationType();
  if (Any.class == annotationType) {
    return ANY;
  } else if (Default.class == annotationType) {
    return DEFAULT;
  } else if (Named.class == annotationType) {
    Named named = (Named) annotation;
    return new QualifierInstance(annotationType, ImmutableMap.of("value", named.value()));
  } else {
    return new QualifierInstance(annotationType, createValues(annotation, store));
  }
}

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * @param annotation
 * @param store
 * @return a new qualifier instance for the given annotation
 */
public static QualifierInstance of(Annotation annotation, MetaAnnotationStore store) {
  Class<? extends Annotation> annotationType = annotation.annotationType();
  if (Any.class == annotationType) {
    return ANY;
  } else if (Default.class == annotationType) {
    return DEFAULT;
  } else if (Named.class == annotationType) {
    Named named = (Named) annotation;
    return new QualifierInstance(annotationType, ImmutableMap.of("value", named.value()));
  } else {
    return new QualifierInstance(annotationType, createValues(annotation, store));
  }
}

代码示例来源:origin: weld/core

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

代码示例来源:origin: org.jboss.weld.se/weld-se

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

代码示例来源:origin: weld/core

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

代码示例来源:origin: weld/core

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

代码示例来源:origin: org.jboss.weld.probe/weld-probe-core

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

return new QualifierInstance(qualifierAnnotationClass, Collections.unmodifiableMap(values));

相关文章