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

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

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

QualifierInstance.createValues介绍

暂无

代码示例

代码示例来源: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));
  }
}

相关文章