本文整理了Java中org.jboss.weld.resolution.QualifierInstance.createValues
方法的一些代码示例,展示了QualifierInstance.createValues
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QualifierInstance.createValues
方法的具体详情如下:
包路径:org.jboss.weld.resolution.QualifierInstance
类名称: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!