Skip to content

Structurizr for Java

License

Notifications You must be signed in to change notification settings

raysbrand/java-3

Repository files navigation

Structurizr

Structurizr for Java

This GitHub repository is (1) a client library for the Structurizr cloud service and on-premises installation and (2) a way to create a Structurizr workspace using Java code. Looking for the Structurizr DSL instead?

A quick example

As an example, the following Java code can be used to create a software architecture model and an associated view that describes a user using a software system, based upon the C4 model.

publicstaticvoidmain(String[] args) throwsException{Workspaceworkspace = newWorkspace("Getting Started", "This is a model of my software system."); Modelmodel = workspace.getModel(); Personuser = model.addPerson("User", "A user of my software system."); SoftwareSystemsoftwareSystem = model.addSoftwareSystem("Software System", "My software system."); user.uses(softwareSystem, "Uses"); ViewSetviews = workspace.getViews(); SystemContextViewcontextView = views.createSystemContextView(softwareSystem, "SystemContext", "An example of a System Context diagram."); contextView.addAllSoftwareSystems(); contextView.addAllPeople()}

The view can then be exported to be visualised using the Structurizr cloud service/on-premises installation/Lite, or other formats including PlantUML, Mermaid, DOT, and WebSequenceDiagrams via the structurizr-export library.

Table of contents

About

Structurizr for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%