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

x33g5p2x  于2022-01-26 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(199)

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

Producer.getInjectionPoints介绍

[英]Returns the set of all InjectionPoints. If the Producer represents a class, then this returns returns the set of InjectionPoint objects representing all injected fields, bean constructor parameters and initializer method parameters. For a producer method, this returns the set of InjectionPoint objects representing all parameters of the producer method.
[中]返回所有注入点的集合。如果生产者代表一个类,那么它将返回一组表示所有注入字段、bean构造函数参数和初始化器方法参数的InjectionPoint对象。对于producer方法,它返回代表producer方法所有参数的InjectionPoint对象集。

代码示例

代码示例来源:origin: thorntail/thorntail

@Override
  public Set<InjectionPoint> getInjectionPoints() {
    return delegate.getInjectionPoints();
  }
};

代码示例来源:origin: org.wildfly.swarm/container

@Override
  public Set<InjectionPoint> getInjectionPoints() {
    return delegate.getInjectionPoints();
  }
};

代码示例来源:origin: io.thorntail/container

@Override
  public Set<InjectionPoint> getInjectionPoints() {
    return delegate.getInjectionPoints();
  }
};

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-test-control-module-impl

@Override
  public Set<InjectionPoint> getInjectionPoints()
  {
    return wrapped.getInjectionPoints();
  }
}

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

public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) {
  for (InjectionPoint injectionPoint : producer.getInjectionPoints()) {
    validateInjectionPoint(injectionPoint, beanManager);
  }
}

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

public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) {
  for (InjectionPoint injectionPoint : producer.getInjectionPoints()) {
    validateInjectionPoint(injectionPoint, beanManager);
  }
}

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

public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) {
  for (InjectionPoint injectionPoint : producer.getInjectionPoints()) {
    validateInjectionPoint(injectionPoint, beanManager);
  }
}

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

public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) {
  for (InjectionPoint injectionPoint : producer.getInjectionPoints()) {
    validateInjectionPoint(injectionPoint, beanManager);
  }
}

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

public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) {
  for (InjectionPoint injectionPoint : producer.getInjectionPoints()) {
    validateInjectionPoint(injectionPoint, beanManager);
  }
}

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

@Override
public Set<InjectionPoint> getInjectionPoints() {
  return getProducer().getInjectionPoints();
}

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

public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) {
  for (InjectionPoint injectionPoint : producer.getInjectionPoints()) {
    validateInjectionPoint(injectionPoint, beanManager);
  }
}

代码示例来源:origin: org.apache.openwebbeans/openwebbeans-impl

/**
 * {@inheritDoc}
 */    
@Override
public Set<InjectionPoint> getInjectionPoints()
{
  return getProducer().getInjectionPoints();
}

代码示例来源:origin: org.jboss.jsr299.tck/jsr299-tck-impl

@Test
@SpecAssertions({
 @SpecAssertion(section = "11.2", id = "g")
})
public void testInjectionPointsForProducerMethod()
{
 Producer<Dog> producer = ProducerProcessor.getNoisyDogProducer();
 DogProducer.reset();
 assert producer.getInjectionPoints().size() == 1;
 assert producer.getInjectionPoints().iterator().next().getType().equals(DogBed.class);
}

代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl

@Test
@SpecAssertions({ @SpecAssertion(section = INJECTIONTARGET, id = "g") })
public void testInjectionPointsForProducerMethod() {
  Producer<Dog> producer = ProducerProcessor.getNoisyDogProducer();
  DogProducer.reset();
  assert producer.getInjectionPoints().size() == 1;
  assert producer.getInjectionPoints().iterator().next().getType().equals(DogBed.class);
}

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

/**
 *
 * @param producer
 */
public ProducerConfiguratorImpl(Producer<T> producer) {
  this.produceCallback = (c) -> producer.produce(c);
  this.disposeCallback = (i) -> producer.dispose(i);
  this.injectionPoints = producer.getInjectionPoints();
}

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

/**
 *
 * @param producer
 */
public ProducerConfiguratorImpl(Producer<T> producer) {
  this.produceCallback = (c) -> producer.produce(c);
  this.disposeCallback = (i) -> producer.dispose(i);
  this.injectionPoints = producer.getInjectionPoints();
}

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

/**
 *
 * @param producer
 */
public ProducerConfiguratorImpl(Producer<T> producer) {
  this.produceCallback = (c) -> producer.produce(c);
  this.disposeCallback = (i) -> producer.dispose(i);
  this.injectionPoints = producer.getInjectionPoints();
}

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

/**
 *
 * @param producer
 */
public ProducerConfiguratorImpl(Producer<T> producer) {
  this.produceCallback = (c) -> producer.produce(c);
  this.disposeCallback = (i) -> producer.dispose(i);
  this.injectionPoints = producer.getInjectionPoints();
}

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

/**
 *
 * @param producer
 */
public ProducerConfiguratorImpl(Producer<T> producer) {
  this.produceCallback = (c) -> producer.produce(c);
  this.disposeCallback = (i) -> producer.dispose(i);
  this.injectionPoints = producer.getInjectionPoints();
}

代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl

@Test
@SpecAssertions({ @SpecAssertion(section = BM_OBTAIN_PRODUCER, id = "a") })
public void testStaticProducerMethod() {
  AnnotatedMethod<? super Factory> method = this.<Factory, AnnotatedMethod<Factory>> getAnnotatedMember(Factory.class,
      "getBuzz");
  Producer<Toy> producer = cast(getCurrentManager().getProducerFactory(method, null).createProducer(null));
  assertNotNull(producer);
  validateInjectionPoints(producer.getInjectionPoints());
  Toy buzz = producer.produce(getCurrentManager().<Toy> createCreationalContext(null));
  assertEquals("Buzz Lightyear", buzz.getName());
}

相关文章