
net.cassite.pure.ioc.annotations.ScopeAttr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pure.ioc Show documentation
Show all versions of pure.ioc Show documentation
Lightweight type and annotation based dependency injection framework
The newest version!
package net.cassite.pure.ioc.annotations;
import java.lang.annotation.*;
/**
* indicate that the instance will be shared in one construction process
*/
@Target({ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface ScopeAttr {
/**
* name of registered instance in scope
*
* @return name
*/
String value();
/**
* the value would be put into the thread scope if true
*
* @return true/false
* @since 0.3.1
*/
boolean thread() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy