예제 #1
0
 def __init__(self, pointcut, log_device):
     """
     cls : the class or class instance to aspect
     method_name : the name of the method to wrap
     log_device : the stream to write log messages in
     """
     AbstractAspect.__init__(self, pointcut)
     self.log_device = log_device
예제 #2
0
 def __init__(self, pointcut, output, config):
     """
     cls : the class or class instance to aspect
     method_name : the name of the method to wrap
     output : the stream to write log messages in
     """
     AbstractAspect.__init__(self, pointcut)
     self.config = config
     self.output = output
예제 #3
0
 def __init__(self, pointcut, arg1, arg2):
     """arg1 and arg2 are here to test that the aspect can
     be be built with additional args
     """
     AbstractAspect.__init__(self, pointcut)
     self.arg1 = arg1
     self.arg2 = arg2
     # A flag to test if wrapping methods are called
     self.trace_flag = 0
예제 #4
0
 def __init__(self, pointcut, arg1, arg2):
     """arg1 and arg2 are here to test that the aspect can
     be be built with additional args
     """
     AbstractAspect.__init__(self, pointcut)
     self.arg1 = arg1
     self.arg2 = arg2
     # A flag to test if wrapping methods are called
     self.trace_flag = 0
예제 #5
0
 def __init__(self, pointcut, rules):
     """
     cls : class or instance to aspect
     method_name : the method name
     rules : the multimethod rules
     """
     AbstractAspect.__init__(self, pointcut)
     
     self.rules = rules        
 def __init__(self, pointcut):
     """
     """
     AbstractAspect.__init__(self, pointcut)
     self.depth = 0
 def __init__(self, pointcut):
     """
     """
     AbstractAspect.__init__(self, pointcut)
     self.depth = 0
예제 #8
0
    def __init__(self, pointcut):
        # contract_definitions has the same key / value behaviour that
        # self._methods (self <=> aspect instance)
        self._contract_definitions = {}

        AbstractAspect.__init__(self, pointcut)
예제 #9
0
 def __init__(self, pointcut):
     """
     """
     self.__profile_dict = {}
     AbstractAspect.__init__(self, pointcut)
예제 #10
0
 def __init__(self, pointcut):
     AbstractAspect.__init__(self, pointcut)
예제 #11
0
 def __init__(self, pointcut):
     """
     """
     self.__profile_dict = {}
     AbstractAspect.__init__(self, pointcut)
예제 #12
0
 def __init__(self, pointcut):
     AbstractAspect.__init__(self, pointcut)
예제 #13
0
 def __init__(self, pointcut, observers):
     """
     """
     AbstractAspect.__init__(self, pointcut)
     self.observers = observers