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

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

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

import javax.enterprise.context.spi.AlterableContext;

/**
 * 

* Lifecycle management for built in contexts. {@link ManagedContext} only allows a context to be activated, deactivated and * destroyed. It does not allow the context to be associated with an underlying data store. These operations are defined on * {@link BoundContext}. *

* *

* Weld provides a number of managed contexts: {@link SessionContext}, {@link ConversationContext}, {@link RequestContext}. All * these managed contexts are scoped to the thread, and propagation of the backing store between threads is the responsibility * of the managed context user. *

* * @author Pete Muir * @see BoundContext * */ public interface ManagedContext extends AlterableContext { /** * Activate the Context. */ void activate(); /** * Deactivate the Context, destroying any instances if the context is invalid. */ void deactivate(); /** * Mark the context as due for destruction when deactivate is called. */ void invalidate(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy