示例#1
0
def element_factory():
    event_manager = EventManager()
    element_dispatcher = ElementDispatcher(event_manager, UMLModelingLanguage())
    element_factory = ElementFactory(event_manager, element_dispatcher)
    yield element_factory
    element_factory.shutdown()
    element_dispatcher.shutdown()
    event_manager.shutdown()
示例#2
0
def element_factory(event_manager):  # noqa: F811
    return ElementFactory(
        event_manager, ElementDispatcher(event_manager,
                                         MockModelingLanguage()))
示例#3
0
def dispatcher(event_manager, modeling_language):
    return ElementDispatcher(event_manager, modeling_language)
示例#4
0
def element_factory(event_manager):
    return ElementFactory(
        event_manager, ElementDispatcher(event_manager, UMLModelingLanguage()))
示例#5
0
def element_factory(event_manager):
    element_factory = ElementFactory(
        event_manager, ElementDispatcher(event_manager, UMLModelingLanguage()))
    yield element_factory
    element_factory.shutdown()