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
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
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
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): # contract_definitions has the same key / value behaviour that # self._methods (self <=> aspect instance) self._contract_definitions = {} AbstractAspect.__init__(self, pointcut)
def __init__(self, pointcut): """ """ self.__profile_dict = {} AbstractAspect.__init__(self, pointcut)
def __init__(self, pointcut): AbstractAspect.__init__(self, pointcut)
def __init__(self, pointcut, observers): """ """ AbstractAspect.__init__(self, pointcut) self.observers = observers