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

net.cassite.pure.ioc.annotations.ScopeAttr Maven / Gradle / Ivy

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