injecteo library
Classes
- BaseInjectionModule
- DisposeMethod
- Marks an instance method as a dispose callback
- Environment
- Annotate dependencies which should be registered only for certain environment
- EnvironmentFilter
- To filter if dependency should be registered
- ExternalModule
- Use ExternalModule to register external / 3rd party dependencies
- FactoryMethod
- GetItServiceLocator
- Inject
- InjecteoConfig
- Marks a top-level function as a config function
- InjectionModule
- Annotate group of dependencies that have logical connection with each other
- LazySingleton
- Annotated class will generate registerLazySingleton function
- Named
- Register a dependency with given name
- NoEnvOrContainsAllFilter
- This filter validates dependencies with no environment keys, or containing all of the provided environments
- NoEnvOrContainsAnyFilter
- This filter validates dependencies with no environment keys, or containing one of the provided environments
- NoEnvOrContainsFilter
-
This filter validates dependencies with no environment keys or containing the provided
environment
- PreResolve
- ServiceLocator
- ServiceLocatorHelper
- SimpleEnvironmentFilter
- A simple filter that can be used directly for simple use cases without having to extend the base EnvironmentFilter
- Singleton
- Annotated class will generate registerSingleton function
Constants
- dev → const Environment
- disposeMethod → const DisposeMethod
- externalModule → const ExternalModule
- factoryMethod → const FactoryMethod
- inject → const Inject
- injecteoConfig → const InjecteoConfig
- kEnvironmentsName → const String
- lazySingleton → const LazySingleton
- preResolve → const PreResolve
- prod → const Environment
- singleton → const Singleton
- test → const Environment
Typedefs
-
DisposeFunc<
T> = FutureOr Function(T param) -
EnvironmentFilterFunc
= bool Function(Set<
String> ) -
FactoryFunc<
T> = T Function() -
FactoryFuncAsync<
T> = Future< T> Function()