ch.inftec.ju.ee.cdi.ScopeControl Maven / Gradle / Ivy
package ch.inftec.ju.ee.cdi;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Qualifier;
/**
* Helper qualifier that can be used to control scopes explicitly depending on certain conditions.
*
* We can use it with @Named to inject instances of a bean with different scope and use the qualifier to avoid having to use @Named for
* all injections (even the default one). For an example, see ContainerTestScopeController.
*
* @author [email protected]
*
*/
@Qualifier
@java.lang.annotation.Retention(RetentionPolicy.RUNTIME)
public @interface ScopeControl {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy