Annotation Type Singleton


  • @Retention(SOURCE)
    @Target(TYPE)
    @Documented
    public @interface Singleton
    Just to indicate that a class is a singleton and therefore only a single instance of the class exists. Usually singletons have a static getInstance() method.
    Author:
    Philip Helger
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value  
    • Element Detail

      • value

        String value
        Default:
        ""