
net.cassite.pure.ioc.annotations.Singleton 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.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.RetentionPolicy;
/**
* Mark a class as Singleton.
* The system will only have one instance of the class.
* Note that if the class extends AutoWire, you cannot 'new' the class twice.
*
* @author wkgcass
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface Singleton {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy