Enum WebBeansType

  • All Implemented Interfaces:
    Serializable, Comparable<WebBeansType>

    public enum WebBeansType
    extends Enum<WebBeansType>
    There are different Web Beans Component with regard to the definition. These are the;
    • Bean Implementation Class Components
    • Producer Method Components

    Bean Implementation Class Components are defined with annotating the ordinary classes with OwbBean annotation. It maybe defined within the web-beans.xml file using <class> element. It is possible to mix these two definitions.

    Producer Method Components are defined within the class that is annotated with OwbBean annotation. In these classes, there are methods that are annotated with Produces annotation. These methods become the producer method components of this web beans component. It maybe defined using the web-beans.xml file using the <producer> element. It is possible to mix these two definitons.

    For further details about the components, see Web Beans Specification Chapter-2.

    Version:
    $Rev$ $Date$
    • Method Detail

      • values

        public static WebBeansType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WebBeansType c : WebBeansType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WebBeansType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null