suppose i have an interface in some language with two simple methods
String toString(Object o)
Object fromString(String s)
this interface is implemented by many classes and there is always just the implementation of those 2 methods nothing more.
my question is, does it make sense to use dependency injection and register the classes that implement this interface in an IoC container? or should i create a new instance in each class that requires this dependency?
note that i already use an IoC container for other things in this app