/ - DI/ - DIContainer.py `- __init__.py `- sample.py DICOntainer.py # -*- coding: utf-8 -*- class DIContainer: def __init__(self, c): self.objects = dict() self.componentFactory = c c.accept(self) def get(self, name): name = name.title() if not name in self.objects: self.objects[name] = self.componentFactory.get(name) return self.objects[name] class ComponentFactory: def __init__(self): self.conta