Class ExternalBeanAttributesFactory


  • public class ExternalBeanAttributesFactory
    extends Object
    Creates BeanAttributes based on BeanAttributes provided by an extension. This class handles creating a safe copy as well as basic validation of provided BeanAttributes.
    Author:
    Jozef Hartinger, Marko Luksa
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> javax.enterprise.inject.spi.BeanAttributes<T> of​(javax.enterprise.inject.spi.BeanAttributes<T> source, javax.enterprise.inject.spi.BeanManager manager)  
      static void validateBeanAttributes​(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
      Validates BeanAttributes.
      static void validateQualifiers​(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)  
      static void validateScope​(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)  
      static void validateStereotypes​(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)  
      static void validateTypes​(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)  
    • Method Detail

      • of

        public static <T> javax.enterprise.inject.spi.BeanAttributes<T> of​(javax.enterprise.inject.spi.BeanAttributes<T> source,
                                                                           javax.enterprise.inject.spi.BeanManager manager)
        Parameters:
        source - source BeanAttributes.
        Returns:
        a safe copy of source BeanAttributes.
      • validateBeanAttributes

        public static void validateBeanAttributes​(javax.enterprise.inject.spi.BeanAttributes<?> attributes,
                                                  javax.enterprise.inject.spi.BeanManager manager)
        Validates BeanAttributes.
        Parameters:
        attributes - BeanAttributes to validate
      • validateStereotypes

        public static void validateStereotypes​(javax.enterprise.inject.spi.BeanAttributes<?> attributes,
                                               javax.enterprise.inject.spi.BeanManager manager)
      • validateQualifiers

        public static void validateQualifiers​(javax.enterprise.inject.spi.BeanAttributes<?> attributes,
                                              javax.enterprise.inject.spi.BeanManager manager)
      • validateTypes

        public static void validateTypes​(javax.enterprise.inject.spi.BeanAttributes<?> attributes,
                                         javax.enterprise.inject.spi.BeanManager manager)
      • validateScope

        public static void validateScope​(javax.enterprise.inject.spi.BeanAttributes<?> attributes,
                                         javax.enterprise.inject.spi.BeanManager manager)