public enum Environments extends Enum<Environments> implements Environment
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends Service>> |
getRequiredBeanDeploymentArchiveServices() |
Set<Class<? extends Service>> |
getRequiredDeploymentServices()
The deployment scoped services required for this environment
|
static Environments |
valueOf(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.
|
public static final Environments EE_INJECT
JpaInjectionServices
,
ResourceInjectionServices
and EjbInjectionServices
are
present, and so will perform EE-style field injection on managed beans
itselfpublic static final Environments EE
InjectionServices
are
present, and expects the container to use this callback to perform EE-style
injectionpublic static final Environments SERVLET
public static final Environments SE
public static Environments[] values()
for (Environments c : Environments.values()) System.out.println(c);
public static Environments valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic Set<Class<? extends Service>> getRequiredDeploymentServices()
Environment
getRequiredDeploymentServices
in interface Environment
public Set<Class<? extends Service>> getRequiredBeanDeploymentArchiveServices()
getRequiredBeanDeploymentArchiveServices
in interface Environment
Copyright © 2012 Seam Framework. All Rights Reserved.