Home / Class/ DelegatingLoggingSystemFactory Class — spring-boot Architecture

DelegatingLoggingSystemFactory Class — spring-boot Architecture

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

Entity Profile

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/DelegatingLoggingSystemFactory.java lines 29–55

class DelegatingLoggingSystemFactory implements LoggingSystemFactory {

	private final @Nullable Function<ClassLoader, @Nullable List<LoggingSystemFactory>> delegates;

	/**
	 * Create a new {@link DelegatingLoggingSystemFactory} instance.
	 * @param delegates a function that provides the delegates
	 */
	DelegatingLoggingSystemFactory(@Nullable Function<ClassLoader, @Nullable List<LoggingSystemFactory>> delegates) {
		this.delegates = delegates;
	}

	@Override
	public @Nullable LoggingSystem getLoggingSystem(ClassLoader classLoader) {
		List<LoggingSystemFactory> delegates = (this.delegates != null) ? this.delegates.apply(classLoader) : null;
		if (delegates != null) {
			for (LoggingSystemFactory delegate : delegates) {
				LoggingSystem loggingSystem = delegate.getLoggingSystem(classLoader);
				if (loggingSystem != null) {
					return loggingSystem;
				}
			}
		}
		return null;
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free