@Singleton(lazy=true).
Lazy singletons are implemented with double-checked locking and a volatile backing field.
By default, no explicit constructors are allowed. To create one or more explicit constructors
use @Singleton(strict=false).
This could be used to:
@Singleton annotation becomes merely documentation)| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public boolean |
| lazy | back to summary |
|---|---|
public boolean lazy()
| |
| property | back to summary |
|---|---|
public String property()
| |
| strict | back to summary |
|---|---|
public boolean strict()
| |