ENV Spring=6.2.11 Java=21.0.11
CHECK PASS 03 refresh phase order [registry, factory, construct, before, init, after, refreshed]
CHECK PASS 03 BPP wrapper preserves callable behavior
CHECK PASS 03 close destroys original target behind wrapper
10月 02, 2026 3:33:56 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broken': Failed to instantiate [blog.spring.Chapter03$Broken]: Constructor threw exception
CHECK PASS 03 singleton creation failure cancels refresh -> BeanCreationException
CHECK PASS 03 failed refresh destroys already created disposable singleton [construct, init, destroy]
CHECK PASS 03 failed context inactive
10月 02, 2026 3:33:56 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: java.lang.IllegalStateException: intentional factory post-processor failure
CHECK PASS 03 factory failure propagates -> IllegalStateException
CHECK PASS 03 factory cleanup boundary events=[construct, init, destroy]
CHECK PASS 03 factory active=false
CHECK PASS 03 factory singleton retention=false
CHECK PASS 03 factory explicit close leaves disposable destroyed
10月 02, 2026 3:33:56 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokenProcessor': Instantiation of supplied bean failed
CHECK PASS 03 BPP failure propagates -> BeanCreationException
CHECK PASS 03 BPP cleanup boundary events=[construct, init, destroy]
CHECK PASS 03 BPP active=false
CHECK PASS 03 BPP singleton retention=false
CHECK PASS 03 BPP explicit close leaves disposable destroyed
CHECK PASS 03 prepareRefresh failure propagates -> IllegalStateException
CHECK PASS 03 prepareRefresh cleanup boundary events=[construct, init]
CHECK PASS 03 prepareRefresh active=true
CHECK PASS 03 prepareRefresh singleton retention=true
CHECK PASS 03 prepareRefresh explicit close leaves disposable destroyed
CHAPTER 03 PASS
