|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Environments>
org.jboss.weld.bootstrap.api.Environments
public enum Environments
Requirements for various well known environments.
| Enum Constant Summary | |
|---|---|
EE
Java EE5 or Java EE6 In this environment, Weld requires that InjectionServices are
present, and expects the container to use this callback to perform EE-style
injection |
|
EE_INJECT
Java EE5 or Java EE6 In this environment, Weld requires that JpaInjectionServices,
ResourceInjectionServices and EjbInjectionServices are
present, and so will perform EE-style field injection on managed beans
itself |
|
SE
Java SE |
|
SERVLET
Servlet container such as Tomcat |
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.Class<? extends Service>> |
getRequiredBeanDeploymentArchiveServices()
|
java.util.Set<java.lang.Class<? extends Service>> |
getRequiredDeploymentServices()
The deployment scoped services required 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 |
|---|
public static final Environments EE_INJECT
JpaInjectionServices,
ResourceInjectionServices and EjbInjectionServices are
present, and so will perform EE-style field injection on managed beans
itself
public static final Environments EE
InjectionServices are
present, and expects the container to use this callback to perform EE-style
injection
public static final Environments SERVLET
public static final Environments SE
| Method Detail |
|---|
public static Environments[] values()
for (Environments c : Environments.values()) System.out.println(c);
public static Environments valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.util.Set<java.lang.Class<? extends Service>> getRequiredDeploymentServices()
Environment
getRequiredDeploymentServices in interface Environmentpublic java.util.Set<java.lang.Class<? extends Service>> getRequiredBeanDeploymentArchiveServices()
getRequiredBeanDeploymentArchiveServices in interface Environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||