Search in sources :

Example 6 with ViewSet

use of com.structurizr.view.ViewSet in project java by structurizr.

the class Workspace method createViewSet.

private ViewSet createViewSet() {
    try {
        Constructor constructor = ViewSet.class.getDeclaredConstructor(Model.class);
        constructor.setAccessible(true);
        return (ViewSet) constructor.newInstance(model);
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}
Also used : Constructor(java.lang.reflect.Constructor) ViewSet(com.structurizr.view.ViewSet) InvocationTargetException(java.lang.reflect.InvocationTargetException)

Aggregations

ViewSet (com.structurizr.view.ViewSet)6 SoftwareSystem (com.structurizr.model.SoftwareSystem)5 Workspace (com.structurizr.Workspace)4 Model (com.structurizr.model.Model)4 Container (com.structurizr.model.Container)3 Person (com.structurizr.model.Person)3 SystemContextView (com.structurizr.view.SystemContextView)3 DeploymentNode (com.structurizr.model.DeploymentNode)2 ComponentView (com.structurizr.view.ComponentView)2 ContainerView (com.structurizr.view.ContainerView)2 DeploymentView (com.structurizr.view.DeploymentView)2 Styles (com.structurizr.view.Styles)2 ComponentFinder (com.structurizr.analysis.ComponentFinder)1 StructurizrAnnotationsComponentFinderStrategy (com.structurizr.analysis.StructurizrAnnotationsComponentFinderStrategy)1 Component (com.structurizr.model.Component)1 Enterprise (com.structurizr.model.Enterprise)1 SystemLandscapeView (com.structurizr.view.SystemLandscapeView)1 Constructor (java.lang.reflect.Constructor)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 URLClassLoader (java.net.URLClassLoader)1