Package org.jboss.weld.bootstrap.api
Interface Environment
- All Known Implementing Classes:
Environments
public interface Environment
Represents an environment. Specifies the services Weld requires
- Author:
- Pete Muir
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanSince CDI 4.0, there is a requirement to fireStartupevent when the container is ready to accept requests andShutdownbefore container shutdown.The bean deployment archive scoped services required for this environmentThe deployment scoped services required for this environmentdefault booleanEnvironment aware of EE modules.
-
Method Details
-
getRequiredDeploymentServices
The deployment scoped services required for this environment- Returns:
- the services to require
-
getRequiredBeanDeploymentArchiveServices
The bean deployment archive scoped services required for this environment- Returns:
- the services to require
-
isEEModulesAware
default boolean isEEModulesAware()Environment aware of EE modules. In such environment each bean archive which belongs to a module should registerEEModuleDescriptor- Returns:
- true by default
-
automaticallyHandleStartupShutdownEvents
default boolean automaticallyHandleStartupShutdownEvents()Since CDI 4.0, there is a requirement to fireStartupevent when the container is ready to accept requests andShutdownbefore container shutdown.By default, Weld fires these events close to
@Initialized(ApplicationScoped.class). However, integrators may choose to fire it at later point if they, for instance, need to make sure other related technologies or libraries also bootstrap successfully.Overriding this method and returning
falsemeans that Weld will not attempt to fire these events and this responsibility then lies with the integrator.- Returns:
- true by default
- See Also:
-
StartupShutdown
-