Home / Class/ SimpleProperties Class — spring-boot Architecture

SimpleProperties Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/simple/SimpleProperties.java lines 29–95

@TestConfigurationProperties("simple")
public class SimpleProperties {

	/**
	 * The name of this simple properties.
	 */
	private String theName = "boot";

	// isFlag is also detected
	/**
	 * A simple flag.
	 */
	private boolean flag;

	// An interface can still be injected because it might have a converter
	private Comparator<?> comparator;

	// There is only a getter on this instance but we don't know what to do with it ->
	// ignored
	private FeatureDescriptor featureDescriptor;

	// There is only a setter on this "simple" property --> ignored
	@SuppressWarnings("unused")
	private Long counter;

	// There is only a getter on this "simple" property --> ignored
	private Integer size;

	public String getTheName() {
		return this.theName;
	}

	@Deprecated
	public void setTheName(String name) {
		this.theName = name;
	}

	@Deprecated
	public boolean isFlag() {
		return this.flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public Comparator<?> getComparator() {
		return this.comparator;
	}

	public void setComparator(Comparator<?> comparator) {
		this.comparator = comparator;
	}

	public FeatureDescriptor getFeatureDescriptor() {
		return this.featureDescriptor;
	}

	public void setCounter(Long counter) {
		this.counter = counter;
	}

	public Integer getSize() {
		return this.size;
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free