mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-05-16 10:10:43 +00:00
15 lines
393 B
Dart
15 lines
393 B
Dart
/// Enum to represent the DI registration/binding mode.
|
|
enum UniversalBindingMode {
|
|
/// Eager singleton — instance created at registration time.
|
|
singletonStrategy,
|
|
|
|
/// Lazy singleton — instance created on first resolve, then cached.
|
|
lazySingletonStrategy,
|
|
|
|
/// Factory-based binding — new instance every time.
|
|
factoryStrategy,
|
|
|
|
/// Async-based binding.
|
|
asyncStrategy,
|
|
}
|