public interface ApplicationContext
extends javax.enterprise.context.spi.Context
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;
SingletonContext
,
ApplicationScoped
Modifier and Type | Method and Description |
---|---|
void |
invalidate()
Invalidate the context, causing all bean instances to be destroyed.
|
Copyright © 2012 Seam Framework. All Rights Reserved.