org.apache.webbeans.component
Enum WebBeansType

java.lang.Object
  extended by java.lang.Enum<WebBeansType>
      extended by org.apache.webbeans.component.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 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: 952420 $ $Date: 2010-06-07 22:35:47 +0200 (Mo, 07 Jun 2010) $

Enum Constant Summary
CONVERSATION
           
DECORATOR
           
DEPENDENT
           
ENTERPRISE
           
EXTENSION
           
INJECTIONPOINT
           
INSTANCE
           
INTERCEPTOR
           
JMS
           
MANAGED
           
MANAGER
           
NEW
           
OBSERVABLE
           
PRINCIPAL
           
PRODUCERFIELD
           
PRODUCERMETHOD
           
RESOURCEBEAN
           
THIRDPARTY
           
USERTRANSACTION
           
VALIDATION
           
VALIDATIONFACT
           
 
Method Summary
static WebBeansType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WebBeansType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MANAGED

public static final WebBeansType MANAGED

PRODUCERMETHOD

public static final WebBeansType PRODUCERMETHOD

PRODUCERFIELD

public static final WebBeansType PRODUCERFIELD

RESOURCEBEAN

public static final WebBeansType RESOURCEBEAN

NEW

public static final WebBeansType NEW

ENTERPRISE

public static final WebBeansType ENTERPRISE

JMS

public static final WebBeansType JMS

DEPENDENT

public static final WebBeansType DEPENDENT

INTERCEPTOR

public static final WebBeansType INTERCEPTOR

DECORATOR

public static final WebBeansType DECORATOR

OBSERVABLE

public static final WebBeansType OBSERVABLE

MANAGER

public static final WebBeansType MANAGER

CONVERSATION

public static final WebBeansType CONVERSATION

INSTANCE

public static final WebBeansType INSTANCE

INJECTIONPOINT

public static final WebBeansType INJECTIONPOINT

THIRDPARTY

public static final WebBeansType THIRDPARTY

EXTENSION

public static final WebBeansType EXTENSION

USERTRANSACTION

public static final WebBeansType USERTRANSACTION

PRINCIPAL

public static final WebBeansType PRINCIPAL

VALIDATIONFACT

public static final WebBeansType VALIDATIONFACT

VALIDATION

public static final WebBeansType VALIDATION
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


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.