# Singleton

com.google.api.server.spi.config

## Annotation Type Singleton

-

  *** ** * ** ***

  <br />

  ```
  @Target(value=TYPE)
   @Retention(value=RUNTIME)
  public @interface Singleton
  ```
  Annotation used with Authenticator and PeerAuthenticator to denote only one instance will be created for optimization. Implementation must be thread safe. Without the annotation a new (peer)authenticator instance will be created for each request.