dart_ddi library

Classes

ApplicationFactory<BeanT extends Object>
Create an instance when first used and reuses it for all subsequent requests during the application's execution.
CustomBuilder<BeanT extends Object>
CustomBuilder is a class that represents how a Bean should be created. It is used to create a Bean after the registration in the DDI system.
DDI
DDI is an abstract class representing a Dependency Injection system. It provides methods for managing beans.
DDIBaseFactory<BeanT extends Object>
DDIInterceptor<BeanT extends Object>
Abstract class representing an interceptor for the Dart Dependency Injection (DDI) Library.
DependentFactory<BeanT extends Object>
Create a new instance every time it is requested.
ObjectFactory<BeanT extends Object>
Create an unique instance during registration and reuses it in all subsequent requests.
SingletonFactory<BeanT extends Object>
Create an unique instance during registration and reuses it in all subsequent requests.

Enums

BeanStateEnum
Enum representing the different states a bean can be in during its lifecycle.

Mixins

DDIInject<InjectType extends Object>
Helper to make easy to Inject one instance
DDIInjectAsync<InjectType extends Object>
Helper to make easy to Inject one instance
DDIModule
Mixin to make it easy to create modules
PostConstruct
Mixin to help to execute some code after the instance is constructed
PreDestroy
Mixin to help to execute some code before the instance is destroyed
PreDispose
Mixin to help to execute some code before the instance is disposed

Extensions

DDIGetExtension on DDI
Extension for DDI to retrieve instances of registered classes.
DDIRegisterExtension on DDI
P0 on BeanT Function()
Extensions to easily create CustomBuilders for functions with different numbers of parameters.
P1 on BeanT Function(A)
Extension for functions with 1 parameter (sync)
P10 on BeanT Function(A, B, C, D, E, F, G, H, I, J)
P2 on BeanT Function(A, B)
Extension for functions with 2 parameters (sync)
P3 on BeanT Function(A, B, C)
Extension for functions with 3 parameters (sync)
P4 on BeanT Function(A, B, C, D)
Extension for functions with 4 parameters (sync)
P5 on BeanT Function(A, B, C, D, E)
Extension for functions with 5 parameters (sync)
P6 on BeanT Function(A, B, C, D, E, F)
Extension for functions with 6 parameters (sync)
P7 on BeanT Function(A, B, C, D, E, F, G)
Extension for functions with 7 parameters (sync)
P8 on BeanT Function(A, B, C, D, E, F, G, H)
P9 on BeanT Function(A, B, C, D, E, F, G, H, I)
PF0 on Future<BeanT> Function()
Extension for functions with 0 parameters (async)
PF1 on Future<BeanT> Function(A)
Extension for functions with 1 parameter (async)
PF10 on Future<BeanT> Function(A, B, C, D, E, F, G, H, I, J)
PF2 on Future<BeanT> Function(A, B)
Extension for functions with 2 parameters (async)
PF3 on Future<BeanT> Function(A, B, C)
Extension for functions with 3 parameters (async)
PF4 on Future<BeanT> Function(A, B, C, D)
Extension for functions with 4 parameters (async)
PF5 on Future<BeanT> Function(A, B, C, D, E)
Extension for functions with 5 parameters (async)
PF6 on BeanT Function(A, B, C, D, E, F)
Extension for functions with 6 parameters (async)
PF7 on Future<BeanT> Function(A, B, C, D, E, F, G)
PF8 on Future<BeanT> Function(A, B, C, D, E, F, G, H)
PF9 on Future<BeanT> Function(A, B, C, D, E, F, G, H, I)

Properties

ddi DDI
Shortcut for getting the shared instance of the DDI class. The DDI class provides methods for managing beans.
final