Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.context;

The built in singleton context, associated with javax.inject.Singleton. It is always active (not managed) and is backed by an application scoped singleton.

Weld comes with one Singleton context which can be injected using:

 @Inject SingletonContext singletonContext;

public interface SingletonContext extends AlterableContext {

Invalidate the context, causing all bean instances to be destroyed.
    void invalidate();
New to GrepCode? Check out our FAQ X