org.jboss.weld.context.ApplicationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
package org.jboss.weld.context;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.spi.AlterableContext;
/**
*
* The built in application context, associated with {@link 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 SingletonContext
* @see ApplicationScoped
*
*/
public interface ApplicationContext extends AlterableContext {
/**
* Invalidate the context, causing all bean instances to be destroyed.
*/
void invalidate();
}