public interface ApplicationContext extends 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;
SingletonContext
,
ApplicationScoped
Modifier and Type | Method and Description |
---|---|
void |
invalidate()
Invalidate the context, causing all bean instances to be destroyed.
|
destroy
Copyright © 2016 JBoss by Red Hat. All rights reserved.