javax.enterprise.inject.spi.AnnotatedMethod.getTypeClosure()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(26)

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

AnnotatedMethod.getTypeClosure介绍

暂无

代码示例

代码示例来源:origin: org.jboss.forge/forge-event-bus

@Override
public Set<Type> getTypeClosure()
{
 return method.getTypeClosure();
}

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

@Override
public Set<Type> getTypeClosure() {
  return original.getTypeClosure();
}

代码示例来源:origin: org.mvc-spec.ozark/ozark-core

@Override
public Set<Type> getTypeClosure() {
  return wrapped.getTypeClosure();
}

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

@Override
public Set<Type> getTypeClosure() {
  return method.getTypeClosure();
}

代码示例来源:origin: org.apache.camel/camel-cdi

private void camelFactoryProducers(@Observes ProcessAnnotatedType<CdiCamelFactory> pat, BeanManager manager) {
  pat.setAnnotatedType(
    new AnnotatedTypeDelegate<>(
      pat.getAnnotatedType(), pat.getAnnotatedType().getMethods().stream()
      .filter(am -> am.isAnnotationPresent(Produces.class))
      .filter(am -> am.getTypeClosure().stream().noneMatch(isEqual(TypeConverter.class)))
      .peek(am -> producerQualifiers.put(am.getJavaMember(), getQualifiers(am, manager)))
      .map(am -> new AnnotatedMethodDelegate<>(am, am.getAnnotations().stream()
        .filter(annotation -> !manager.isQualifier(annotation.annotationType()))
        .collect(collectingAndThen(toSet(), annotations -> {
          annotations.add(EXCLUDED); return annotations;
        }))))
      .collect(toSet())));
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, Set<Annotation> annotations, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     annotations,
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: com.sun.jersey/jersey-servlet

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, Set<Annotation> annotations, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     annotations,
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: jersey/jersey-1.x

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, Set<Annotation> annotations, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     annotations,
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: com.sun.jersey/jersey-servlet

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     method.getAnnotations(),
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     method.getAnnotations(),
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: jersey/jersey-1.x

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     method.getAnnotations(),
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: org.agorava/solder-generics-impl

for (Type t : method.getTypeClosure()) {
  if (t instanceof Class<?>) {
    Class<?> c = (Class<?>) t;

代码示例来源:origin: org.jboss.seam.solder/seam-solder

for (Type t : method.getTypeClosure())

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

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}

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

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}

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

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}

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

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}

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

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}

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

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}

相关文章