Currently all instances that are get or inject are auto-cached in memory.
Maybe it will be useful to add method to get an instance without keeping it - the same as making new instance alone.
Reason - others do it, maybe there is a reason why
Reason I can think of as of now - if "named template configurations are implemented".
Example:
We generate template named "wow1" that is Class.class with [parameters]
Getting same instance of this class is possible with get(wow1) or inject(wow1)
Getting new instance without caching is possible with something like new(wow1)
If approach such issue - concept of named templates shall be also implemented.
Currently all instances that are
get
orinject
are auto-cached in memory. Maybe it will be useful to add method to get an instance without keeping it - the same as making new instance alone.Reason - others do it, maybe there is a reason why Reason I can think of as of now - if "named template configurations are implemented".
Example:
get(wow1)
orinject(wow1)
new(wow1)
If approach such issue - concept of named templates shall be also implemented.