def __init__(self, val, scope): self.value = val self.scope = scope self.activator = ActivatorFactory.getClassActivator(val) if val.__init__ != object.__init__ \ and len(inspect.getargspec(val.__init__).args) != 1 \ and not hasattr(val.__init__, internal.INJECT_ATTR): raise InjectionError("'%s' has non-trivial ctor so should be decorated with @inject" % (internal.className(val)))
def __init__(self, val, scope): self.value = val self.scope = scope self.activator = ActivatorFactory.getInstanceActivarot(val)