All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.weld.context.SingletonContext Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
package org.jboss.weld.context;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.spi.AlterableContext;
import javax.inject.Singleton;

/**
 * 

* The built in singleton context, associated with {@link 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;
 * 
* * @author Pete Muir * @see SingletonContext * @see ApplicationScoped * */ public interface SingletonContext extends AlterableContext { /** * Invalidate the context, causing all bean instances to be destroyed. */ void invalidate(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy