Annotation Type Singleton


  • @Retention(SOURCE)
    @Target(TYPE)
    public @interface Singleton
    Marks classes/enums which are intentionally exploiting the singleton pattern, meaning there is only one instance of this class per application.