Home / Class/ ConfigTreeConfigDataResource Class — spring-boot Architecture

ConfigTreeConfigDataResource Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigTreeConfigDataResource.java lines 34–74

public class ConfigTreeConfigDataResource extends ConfigDataResource {

	private final Path path;

	ConfigTreeConfigDataResource(String path) {
		Assert.notNull(path, "'path' must not be null");
		this.path = Paths.get(path).toAbsolutePath();
	}

	ConfigTreeConfigDataResource(Path path) {
		Assert.notNull(path, "'path' must not be null");
		this.path = path.toAbsolutePath();
	}

	Path getPath() {
		return this.path;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null || getClass() != obj.getClass()) {
			return false;
		}
		ConfigTreeConfigDataResource other = (ConfigTreeConfigDataResource) obj;
		return Objects.equals(this.path, other.path);
	}

	@Override
	public int hashCode() {
		return this.path.hashCode();
	}

	@Override
	public String toString() {
		return "config tree [" + this.path + "]";
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free