Home / Type/ WithPropertyInIfXmlResource Type — spring-boot Architecture

WithPropertyInIfXmlResource Type — spring-boot Architecture

Architecture documentation for the WithPropertyInIfXmlResource type/interface in SpringBootJoranConfiguratorTests.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/SpringBootJoranConfiguratorTests.java lines 335–351

	@Target(ElementType.METHOD)
	@Retention(RetentionPolicy.RUNTIME)
	@WithResource(name = "property-in-if.xml", content = """
			<?xml version="1.0" encoding="UTF-8"?>
			<configuration>
				<include resource="org/springframework/boot/logging/logback/base.xml"/>
				<springProperty scope="context" name="MINE" source="my.example-property"/>
				<if condition='property("MINE").contains("true")'>
					<then>
						<variable scope="context" name="MYCHECK" value="i-was-included"/>
					</then>
				</if>
			</configuration>
			""")
	private @interface WithPropertyInIfXmlResource {

	}

Analyze Your Own Codebase

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

Try Supermodel Free