The @container.autowire decorator will simply return a new function that will bind container objects to the function on call. Since this will happen on every call, even though cached it still has a small performance penalty.
On registration, if the container has been warmed up we should bind any known singleton services and parameters as the container is considered final.
The
@container.autowire
decorator will simply return a new function that will bind container objects to the function on call. Since this will happen on every call, even though cached it still has a small performance penalty.On registration, if the container has been warmed up we should bind any known singleton services and parameters as the container is considered final.