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

de.hilling.junit.cdi.ContextControl Maven / Gradle / Ivy

The newest version!
package de.hilling.junit.cdi;

import java.lang.annotation.Annotation;

/**
 * API for access to weld internals.
 */
public interface ContextControl {
    void startContexts();

    /**
     * Stop all container built-in Contexts and destroy all beans properly
     */
    void stopContexts();

    /**
     * Start the specified scope. This only works for scopes which are handled
     * by the CDI container itself. Custom scoped of 3rd party
     * Context implementations shall be started directly (they are portable anyway).
     *
     * @param scopeClass e.g. RequestScoped.class
     */
    void startContext(Class scopeClass);

    /**
     * Stop the specified scope. This only works for scopes which are handled
     * by the CDI container itself. Custom scoped of 3rd party
     * Context implementations shall be stopped directly (they are portable anyway).
     *
     * @param scopeClass e.g. RequestScoped.class
     */
    void stopContext(Class scopeClass);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy