Stay organized with collections
Save and categorize content based on your preferences.
com.google.api.server.spi.config
Annotation Type Singleton
@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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003e@Singleton\u003c/code\u003e is an annotation used with \u003ccode\u003eAuthenticator\u003c/code\u003e and \u003ccode\u003ePeerAuthenticator\u003c/code\u003e for optimization.\u003c/p\u003e\n"],["\u003cp\u003eThis annotation ensures that only one instance of the authenticator is created.\u003c/p\u003e\n"],["\u003cp\u003eImplementations marked with \u003ccode\u003e@Singleton\u003c/code\u003e must be thread-safe.\u003c/p\u003e\n"],["\u003cp\u003eWithout \u003ccode\u003e@Singleton\u003c/code\u003e, a new authenticator instance is created for every request.\u003c/p\u003e\n"]]],[],null,[]]