Structorizer use online1/31/2024 ![]() We can even plug in custom resolution strategies: ComponentFinder componentFinder = new ComponentFinder( Resolution strategies affect things such as which components will be added to the model, depth of dependency tree traversal etc. Next, we need to create a ComponentFinder configured with one or more resolution strategies. To utilize this feature, we need to add yet another dependency: Componentsįor existing code-bases using the Spring framework, Structurizr provides an automated way of extracting Spring-annotated components and adding them to the architectural artifacts. Rendering the resulting diagram via PlantUML produces: 7. createContainerView(paymentTerminal, "F5", "Container View") Next, we define relationships between these newly created elements: f5.uses(jvm1, "route") įinally, create a container view that can be fed to a renderer: ContainerView view = workspace.getViews() "JVM-3", "JVM-3", "Java Virtual Machine") Ĭontainer oracle = paymentTerminal.addContainer( "JVM-2", "JVM-2", "Java Virtual Machine") Ĭontainer jvm3 = paymentTerminal.addContainer( "JVM-1", "JVM-1", "Java Virtual Machine") Ĭontainer jvm2 = paymentTerminal.addContainer( "Payment Load Balancer", "Payment Load Balancer", "F5") Ĭontainer jvm1 = paymentTerminal.addContainer( In a C4 model, containers can be web applications, mobile apps, desktop applications, databases and file systems: pretty much anything that holds code and/or data.įirst, we create some containers for our payment terminal: Container f5 = paymentTerminal.addContainer( This version, which has also been released under the terms of the GPL, was given the major release number 3 and became the basis for all the versions 3.x until now.Let's extend our software system by adding some containers.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |