spring: loadBeanDefinitions 时序图

43次阅读

共计 2012 个字符,预计需要花费 6 分钟才能阅读完成。

plantuml code
@startuml

“xmlBeanFactory: XmlBeanFactory” -> “reader:XmlBeanDefinitionReader” : 1: loadBeanDefinitions(resource)
activate “xmlBeanFactory: XmlBeanFactory”
activate “reader:XmlBeanDefinitionReader”
“reader:XmlBeanDefinitionReader” -> “encodedResource:EncodedResource” : 1.1: new EncodedResource(resource)

activate “encodedResource:EncodedResource”
“encodedResource:EncodedResource” –> “reader:XmlBeanDefinitionReader” : 1.2: encodedResource:EncodedResource
deactivate “encodedResource:EncodedResource”
“reader:XmlBeanDefinitionReader” -> “reader:XmlBeanDefinitionReader”: 1.3: loadBeanDefinitions(encodedResource)
activate “reader:XmlBeanDefinitionReader”
“reader:XmlBeanDefinitionReader” -> “encodedResource:EncodedResource”: 1.3.1: getResource()
activate “encodedResource:EncodedResource”
“encodedResource:EncodedResource” –> “reader:XmlBeanDefinitionReader” : 1.3.2: resource:Resource
deactivate “encodedResource:EncodedResource”
“reader:XmlBeanDefinitionReader” -> “resource:Resource” : 1.3.3: getInputStream()
activate “resource:Resource”
“resource:Resource” –> “reader:XmlBeanDefinitionReader”: inputStream: InputStream
deactivate “resource:Resource”
“reader:XmlBeanDefinitionReader” -> “inputSource: InputSource”: 1.3.5: new InputStream(inputSource)
activate “inputSource: InputSource”
“inputSource: InputSource” –> “reader:XmlBeanDefinitionReader”: 1.3.6: inputSource: InputSource
deactivate “inputSource: InputSource”

“reader:XmlBeanDefinitionReader” -> “reader:XmlBeanDefinitionReader”: 1.3.7: loadBeanDefinitions((inputSource, encodedResource.getResource()))
activate “reader:XmlBeanDefinitionReader”
“reader:XmlBeanDefinitionReader” –> “reader:XmlBeanDefinitionReader”: 1.3.3: loadedBeanDefinitionNum:int
deactivate “reader:XmlBeanDefinitionReader”
“reader:XmlBeanDefinitionReader” –> “reader:XmlBeanDefinitionReader”: 1.3.4: loadedBeanDefinitionNum:int
deactivate “reader:XmlBeanDefinitionReader”

“reader:XmlBeanDefinitionReader” –> “xmlBeanFactory: XmlBeanFactory”: 1.3.4: loadedBeanDefinitionNum:int
deactivate “reader:XmlBeanDefinitionReader”
deactivate “xmlBeanFactory: XmlBeanFactory”
@enduml
img

正文完
 0