Home / Function/ withReadOnlyPidFile() — spring-boot Function Reference

withReadOnlyPidFile() — spring-boot Function Reference

Architecture documentation for the withReadOnlyPidFile() function in ApplicationPidFileWriterTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  13b775cb_73a1_b273_b3d9_b449ecd3b4e9["withReadOnlyPidFile()"]
  f2ade1d3_9cba_5194_78bc_08fcaba74d4e["continueWhenPidFileIsReadOnly()"]
  f2ade1d3_9cba_5194_78bc_08fcaba74d4e -->|calls| 13b775cb_73a1_b273_b3d9_b449ecd3b4e9
  ccd3c01e_b720_413c_e7a9_b5d07fb28ae1["throwWhenPidFileIsReadOnly()"]
  ccd3c01e_b720_413c_e7a9_b5d07fb28ae1 -->|calls| 13b775cb_73a1_b273_b3d9_b449ecd3b4e9
  d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf["throwWhenPidFileIsReadOnlyWithSpring()"]
  d30cbcfe_171d_63c0_38e7_2af5dbc9a3cf -->|calls| 13b775cb_73a1_b273_b3d9_b449ecd3b4e9
  style 13b775cb_73a1_b273_b3d9_b449ecd3b4e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java lines 162–172

	private void withReadOnlyPidFile(Consumer<File> consumer) throws IOException {
		File file = new File(this.tempDir, "pid");
		file.createNewFile();
		file.setReadOnly();
		try {
			consumer.accept(file);
		}
		finally {
			file.setWritable(true);
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does withReadOnlyPidFile() do?
withReadOnlyPidFile() is a function in the spring-boot codebase.
What calls withReadOnlyPidFile()?
withReadOnlyPidFile() is called by 3 function(s): continueWhenPidFileIsReadOnly, throwWhenPidFileIsReadOnly, throwWhenPidFileIsReadOnlyWithSpring.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free