Sunday 13 August 2023

Defining Package Dependencies in PlantUML

Following snippet add links or relationship between two package nio and nioChannels.

nio +-- nioChannels

 

packageLinks.txt

@startuml
	scale 600 width

	package "java.nio" as nio {
		class Class1
	}

	package "java.nio.channels" as nioChannels {
		class Class2
	}

	package "java.nio.file" as nioFile {
		class Class3
	}

	package "java.nio.file.spi" as nioFileSpi {
		class Class4
	}
	
	nio +-- nioChannels
	nio +-- nioFile
	nioFile +-- nioFileSpi

@enduml

 Above snippet generate below image.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment