I would like to injecte a decorator on a method class from another class.
I have the following interface :
class Interface(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def run(self):
"""Run the process."""
return
I am have my class that uses the interface
class Launch(Interface):
def run(self):
pass
What I would like to do is inject decorators (that have arguments) from within my Interface class into my Launch class.
I have tried to use Decorator injector but without success.
What would be the best way to implement such a feature ?
Using your help I create the follwing function that detects if implementation is done :