org.jboss.webbeans.bootstrap.api
Enum Environments

java.lang.Object
  extended by java.lang.Enum<Environments>
      extended by org.jboss.webbeans.bootstrap.api.Environments
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Environments>, Environment

public enum Environments
extends java.lang.Enum<Environments>
implements Environment

Various well known environments.

Author:
Pete Muir

Enum Constant Summary
EE
          Java EE5 or Java EE6
EE_WEB_PROFILE
          Java EE6 Web Profile
SE
          Java SE
SERVLET
          Servlet container such as Tomcat
 
Method Summary
 java.util.Set<java.lang.Class<? extends Service>> getRequiredServices()
          The services to require for this environment
static Environments valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Environments[] 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

EE

public static final Environments EE
Java EE5 or Java EE6


EE_WEB_PROFILE

public static final Environments EE_WEB_PROFILE
Java EE6 Web Profile


SERVLET

public static final Environments SERVLET
Servlet container such as Tomcat


SE

public static final Environments SE
Java SE

Method Detail

values

public static Environments[] 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 (Environments c : Environments.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Environments valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getRequiredServices

public java.util.Set<java.lang.Class<? extends Service>> getRequiredServices()
Description copied from interface: Environment
The services to require for this environment

Specified by:
getRequiredServices in interface Environment
Returns:
the services to require


Copyright © 2011. All Rights Reserved.