groovy.lang
@Documented @Retention(value=SOURCE) @Target(value=TYPE) public @interface Singleton
@Singleton(lazy=true)
Lazy singletons implemented with double check locking and volatile field| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
lazy |