Package org.jboss.weld.bootstrap.api
Enum Environments
- All Implemented Interfaces:
Serializable,Comparable<Environments>,java.lang.constant.Constable,Environment
Requirements for various well known environments.
- Author:
- Pete Muir
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJava EE5 or Java EE6 In this environment, Weld requires thatInjectionServicesare present, and expects the container to use this callback to perform EE-style injectionJava EE5 or Java EE6 In this environment, Weld requires thatJpaInjectionServices,ResourceInjectionServicesandEjbInjectionServicesare present, and so will perform EE-style field injection on managed beans itselfJava SEServlet container such as Tomcat -
Method Summary
Modifier and TypeMethodDescriptionThe bean deployment archive scoped services required for this environmentThe deployment scoped services required for this environmentbooleanEnvironment aware of EE modules.static EnvironmentsReturns 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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.jboss.weld.bootstrap.api.Environment
automaticallyHandleStartupShutdownEvents
-
Enum Constant Details
-
EE_INJECT
Java EE5 or Java EE6 In this environment, Weld requires thatJpaInjectionServices,ResourceInjectionServicesandEjbInjectionServicesare present, and so will perform EE-style field injection on managed beans itself -
EE
Java EE5 or Java EE6 In this environment, Weld requires thatInjectionServicesare present, and expects the container to use this callback to perform EE-style injection -
SERVLET
Servlet container such as Tomcat -
SE
Java SE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getRequiredDeploymentServices
Description copied from interface:EnvironmentThe deployment scoped services required for this environment- Specified by:
getRequiredDeploymentServicesin interfaceEnvironment- Returns:
- the services to require
-
getRequiredBeanDeploymentArchiveServices
Description copied from interface:EnvironmentThe bean deployment archive scoped services required for this environment- Specified by:
getRequiredBeanDeploymentArchiveServicesin interfaceEnvironment- Returns:
- the services to require
-
isEEModulesAware
public boolean isEEModulesAware()Description copied from interface:EnvironmentEnvironment aware of EE modules. In such environment each bean archive which belongs to a module should registerEEModuleDescriptor- Specified by:
isEEModulesAwarein interfaceEnvironment- Returns:
- true by default
-