Skip to content

Commit cdfb1ce

Browse files
authored
Update dynamic spring context loader method (#994)
1 parent d3f7d94 commit cdfb1ce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sofa-boot-project/sofa-boot-core/isle-sofa-boot/src/main/java/com/alipay/sofa/isle/loader/DynamicSpringContextLoader.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ protected void loadBeanDefinitions(DeploymentDescriptor deployment,
105105
}
106106
}
107107

108-
private void setUpParentSpringContext(GenericApplicationContext applicationContext,
109-
DeploymentDescriptor deployment,
110-
ApplicationRuntimeModel application) {
108+
protected void setUpParentSpringContext(GenericApplicationContext applicationContext,
109+
DeploymentDescriptor deployment,
110+
ApplicationRuntimeModel application) {
111111
ConfigurableApplicationContext parentSpringContext = getSpringParent(deployment,
112112
application);
113113
if (parentSpringContext != null) {
@@ -121,8 +121,8 @@ private void setUpParentSpringContext(GenericApplicationContext applicationConte
121121
}
122122
}
123123

124-
private ConfigurableApplicationContext getSpringParent(DeploymentDescriptor deployment,
125-
ApplicationRuntimeModel application) {
124+
protected ConfigurableApplicationContext getSpringParent(DeploymentDescriptor deployment,
125+
ApplicationRuntimeModel application) {
126126
ConfigurableApplicationContext parentSpringContext = null;
127127
if (deployment.getSpringParent() != null) {
128128
String springParent = deployment.getSpringParent();
@@ -143,7 +143,7 @@ private ConfigurableApplicationContext getSpringParent(DeploymentDescriptor depl
143143
}
144144

145145
@SuppressWarnings("unchecked")
146-
private void addPostProcessors(DefaultListableBeanFactory beanFactory) {
146+
protected void addPostProcessors(DefaultListableBeanFactory beanFactory) {
147147
Map<String, BeanDefinition> processors = (Map<String, BeanDefinition>) rootApplicationContext
148148
.getBean(SofaBootConstants.PROCESSORS_OF_ROOT_APPLICATION_CONTEXT);
149149
for (Map.Entry<String, BeanDefinition> entry : processors.entrySet()) {
@@ -153,7 +153,7 @@ private void addPostProcessors(DefaultListableBeanFactory beanFactory) {
153153
}
154154
}
155155

156-
private BeanStatExtension getBeanStatExtension() {
156+
protected BeanStatExtension getBeanStatExtension() {
157157
try {
158158
return this.rootApplicationContext.getBean(BeanStatExtension.class);
159159
} catch (Throwable e) {

0 commit comments

Comments
 (0)