Class Beans

java.lang.Object
org.infinispan.cdi.common.util.Beans

public class Beans extends Object
A set of utility methods for working with beans.
Author:
Pete Muir
  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<Annotation>
    Returns a new set with @Default and @Any added as needed
    static void
    checkReturnValue(Object instance, javax.enterprise.inject.spi.Bean<?> bean, javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.inject.spi.BeanManager beanManager)
     
    static <X> List<javax.enterprise.inject.spi.InjectionPoint>
    createInjectionPoints(javax.enterprise.inject.spi.AnnotatedMethod<X> method, javax.enterprise.inject.spi.Bean<?> declaringBean, javax.enterprise.inject.spi.BeanManager beanManager)
    Given a method, and the bean on which the method is declared, create a collection of injection points representing the parameters of the method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • buildQualifiers

      public static Set<Annotation> buildQualifiers(Set<Annotation> annotations)
      Returns a new set with @Default and @Any added as needed
      Returns:
    • checkReturnValue

      public static void checkReturnValue(Object instance, javax.enterprise.inject.spi.Bean<?> bean, javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.inject.spi.BeanManager beanManager)
    • createInjectionPoints

      public static <X> List<javax.enterprise.inject.spi.InjectionPoint> createInjectionPoints(javax.enterprise.inject.spi.AnnotatedMethod<X> method, javax.enterprise.inject.spi.Bean<?> declaringBean, javax.enterprise.inject.spi.BeanManager beanManager)
      Given a method, and the bean on which the method is declared, create a collection of injection points representing the parameters of the method.
      Type Parameters:
      X - the type declaring the method
      Parameters:
      method - the method
      declaringBean - the bean on which the method is declared
      beanManager - the bean manager to use to create the injection points
      Returns:
      the injection points