simply_injector library
Classes
- Container
- Container is used to register mappings between each abstraction (service) and its corresponding implementation (component).
- ContainerOptions
- Configuration options for the Container. The following example shows the typical usage of the ContainerOptions class.
-
Instance<
C> - Helper that represents a class.
-
InstanceProducer<
TService> - Produces instances for a given registration.
- Lifestyle
- Instances returned from the container can be cached.
- Requires
- Convenience class with common methods.
- SimplyInjector
- Convenient Container to keep compatibility with the original library.
-
SingletonInstance<
C> -
Represents a singleton instance of
C
. - SingletonLifestyle
-
TransientInstance<
C> -
Represents a transient instance of
C
. - TransientLifestyle
Typedefs
-
Constructor<
C> = C Function()
Exceptions / Errors
- ActivationException
- The standard exception thrown when a container has an error in resolving an object.
- TypeAlreadyRegisteredException
- The standard exception thrown when a type already registered in the Container.