Home / Class/ BasicProperties Class — spring-boot Architecture

BasicProperties Class — spring-boot Architecture

Architecture documentation for the BasicProperties class in ConfigurationPropertiesTests.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 1798–1840

	@ConfigurationProperties
	public static class BasicProperties {

		private @Nullable String name;

		private int @Nullable [] array;

		private @Nullable List<Integer> list = new ArrayList<>();

		private @Nullable Duration duration;

		// No getter - you should be able to bind to a write-only bean

		public void setName(@Nullable String name) {
			// Must be public for XML
			this.name = name;
		}

		void setArray(int... values) {
			this.array = values;
		}

		int @Nullable [] getArray() {
			return this.array;
		}

		@Nullable List<Integer> getList() {
			return this.list;
		}

		void setList(@Nullable List<Integer> list) {
			this.list = list;
		}

		@Nullable Duration getDuration() {
			return this.duration;
		}

		void setDuration(@Nullable Duration duration) {
			this.duration = duration;
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free