com.google.inject
Annotation Type Singleton


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Singleton

Apply this to implementation classes when you want only one instance (per Injector) to be reused for all injections for that binding.



Copyright 2007 Google Inc. All Rights Reserved.