Annotation Type Singleton


@Retention(RUNTIME) @Target(METHOD) public @interface Singleton
Give singleton a name. If interface extending Singleton is not annotated with this, the effective name will be class' getSimpleName().
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • container

      String container
      Default:
      ""