示例#1
0
文件: aspects.py 项目: sherzberg/aopy
 def __init__(self, signature, numargs, kwargs):
     """Constructor
     
     Arguments:
     signature --  string of the method/function to advise
     numargs -- string to represent the number of possible argument for this advise
     kwargs -- list of possible keyword arguments, possible values: ["*"], ["4"], ["apple","banana"]
     """
     AOPWrapper.__init__(self, signature, numargs, kwargs)
     self.setAround(self.intercept)
示例#2
0
文件: aspects.py 项目: sherzberg/aopy
 def __init__(self, signature, numargs, kwargs):
     AOPWrapper.__init__(self, signature, numargs, kwargs)
     self.setBefore(self.before)
     self.setAfter(self.after)
     self.setAround(self.around)