Package org.jboss.weld.context
Interface ApplicationContext
- All Superinterfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context
public interface ApplicationContext
extends jakarta.enterprise.context.spi.AlterableContext
The built in application context, associated with ApplicationScoped. It is always active (not managed) and is backed
by an application scoped singleton.
Weld comes with one Application context which can be injected using:
@Inject ApplicationContext applicationContext;
- Author:
- Pete Muir
- See Also:
-
SingletonContextApplicationScoped
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvalidate the context, causing all bean instances to be destroyed.Methods inherited from interface jakarta.enterprise.context.spi.AlterableContext
destroyMethods inherited from interface jakarta.enterprise.context.spi.Context
get, get, getScope, isActive
-
Method Details
-
invalidate
void invalidate()Invalidate the context, causing all bean instances to be destroyed.
-