Skip to content

Commit 2fdff15

Browse files
committed
fix:fix actuator class not found error.
Signed-off-by: Haotian Zhang <[email protected]>
1 parent 2fd50c3 commit 2fdff15

File tree

24 files changed

+23
-152
lines changed

24 files changed

+23
-152
lines changed

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2021-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/CircuitBreakerBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.tencent.cloud.polaris.circuitbreaker.config.PolarisCircuitBreakerAutoConfiguration;
2727
import com.tencent.cloud.polaris.circuitbreaker.config.PolarisCircuitBreakerBootstrapConfiguration;
2828
import com.tencent.cloud.polaris.circuitbreaker.config.PolarisCircuitBreakerFeignClientAutoConfiguration;
29-
import com.tencent.cloud.polaris.circuitbreaker.endpoint.PolarisCircuitBreakerEndpointAutoConfiguration;
3029
import org.slf4j.Logger;
3130
import org.slf4j.LoggerFactory;
3231
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -95,10 +94,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
9594
GatewayPolarisCircuitBreakerAutoConfiguration.class).getBeanDefinition());
9695
}
9796
}
98-
Object polarisCircuitBreakerEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisCircuitBreakerEndpointAutoConfiguration.class, "polarisCircuitBreakerEndpointAutoConfiguration");
99-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisCircuitBreakerEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
100-
registry.registerBeanDefinition("polarisCircuitBreakerEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
101-
PolarisCircuitBreakerEndpointAutoConfiguration.class).getBeanDefinition());
10297
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
10398
}
10499
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2021-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/CommonBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import cn.polarismesh.agent.plugin.spring.cloud.common.BeanInjector;
2222
import cn.polarismesh.agent.plugin.spring.cloud.common.Constant;
2323
import com.tencent.cloud.common.metadata.config.MetadataAutoConfiguration;
24-
import com.tencent.cloud.common.metadata.endpoint.PolarisMetadataEndpointAutoConfiguration;
2524
import com.tencent.cloud.common.util.ApplicationContextAwareUtils;
2625
import com.tencent.cloud.polaris.context.logging.PolarisLoggingApplicationListener;
2726
import org.slf4j.Logger;
@@ -51,10 +50,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
5150
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, metadataAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
5251
registry.registerBeanDefinition("metadataAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
5352
MetadataAutoConfiguration.class).getBeanDefinition());
54-
Object polarisMetadataEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisMetadataEndpointAutoConfiguration.class, "polarisMetadataEndpointAutoConfiguration");
55-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisMetadataEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
56-
registry.registerBeanDefinition("polarisMetadataEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
57-
PolarisMetadataEndpointAutoConfiguration.class).getBeanDefinition());
5853
Object applicationContextAwareUtils = ReflectionUtils.invokeConstructor(configClassCreator, ApplicationContextAwareUtils.class, "applicationContextAwareUtils");
5954
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, applicationContextAwareUtils, Constant.DEFAULT_EXCLUSION_FILTER);
6055
registry.registerBeanDefinition("applicationContextAwareUtils", BeanDefinitionBuilder.genericBeanDefinition(

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2021-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/ConfigBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import cn.polarismesh.agent.plugin.spring.cloud.common.Utils;
2424
import com.tencent.cloud.polaris.config.PolarisConfigAutoConfiguration;
2525
import com.tencent.cloud.polaris.config.PolarisConfigBootstrapAutoConfiguration;
26-
import com.tencent.cloud.polaris.config.endpoint.PolarisConfigEndpointAutoConfiguration;
2726
import org.slf4j.Logger;
2827
import org.slf4j.LoggerFactory;
2928
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -86,10 +85,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
8685
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisConfigAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
8786
registry.registerBeanDefinition("polarisConfigAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
8887
PolarisConfigAutoConfiguration.class).getBeanDefinition());
89-
Object polarisConfigEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisConfigEndpointAutoConfiguration.class, "polarisConfigEndpointAutoConfiguration");
90-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisConfigEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
91-
registry.registerBeanDefinition("polarisConfigEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
92-
PolarisConfigEndpointAutoConfiguration.class).getBeanDefinition());
9388
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
9489
}
9590
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2021-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/RateLimitBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.tencent.cloud.polaris.ratelimit.config.PolarisRateLimitAutoConfiguration;
2525
import com.tencent.cloud.polaris.ratelimit.config.PolarisRateLimitPropertiesAutoConfiguration;
2626
import com.tencent.cloud.polaris.ratelimit.config.PolarisRateLimitPropertiesBootstrapConfiguration;
27-
import com.tencent.cloud.polaris.ratelimit.endpoint.PolarisRateLimitRuleEndpointAutoConfiguration;
2827
import org.slf4j.Logger;
2928
import org.slf4j.LoggerFactory;
3029
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -77,10 +76,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
7776
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisRateLimitPropertiesAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
7877
registry.registerBeanDefinition("polarisRateLimitPropertiesAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
7978
PolarisRateLimitPropertiesAutoConfiguration.class).getBeanDefinition());
80-
Object polarisRateLimitRuleEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisRateLimitRuleEndpointAutoConfiguration.class, "polarisRateLimitRuleEndpointAutoConfiguration");
81-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisRateLimitRuleEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
82-
registry.registerBeanDefinition("polarisRateLimitRuleEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
83-
PolarisRateLimitRuleEndpointAutoConfiguration.class).getBeanDefinition());
8479
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
8580
}
8681
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2021-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/RegistryBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import com.tencent.cloud.polaris.discovery.PolarisDiscoveryClientConfiguration;
2828
import com.tencent.cloud.polaris.discovery.reactive.PolarisReactiveDiscoveryClientConfiguration;
2929
import com.tencent.cloud.polaris.discovery.refresh.PolarisRefreshConfiguration;
30-
import com.tencent.cloud.polaris.endpoint.PolarisDiscoveryEndpointAutoConfiguration;
3130
import com.tencent.cloud.polaris.registry.PolarisServiceRegistryAutoConfiguration;
3231
import org.slf4j.Logger;
3332
import org.slf4j.LoggerFactory;
@@ -97,10 +96,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
9796
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisServiceRegistryAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
9897
registry.registerBeanDefinition("polarisServiceRegistryAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
9998
PolarisServiceRegistryAutoConfiguration.class).getBeanDefinition());
100-
Object polarisDiscoveryEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisDiscoveryEndpointAutoConfiguration.class, "polarisDiscoveryEndpointAutoConfiguration");
101-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisDiscoveryEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
102-
registry.registerBeanDefinition("polarisDiscoveryEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
103-
PolarisDiscoveryEndpointAutoConfiguration.class).getBeanDefinition());
10499
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
105100
}
106101
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2021-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/RouterBeanInjector.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import com.tencent.cloud.polaris.router.config.properties.PolarisNamespaceRouterProperties;
3030
import com.tencent.cloud.polaris.router.config.properties.PolarisNearByRouterProperties;
3131
import com.tencent.cloud.polaris.router.config.properties.PolarisRuleBasedRouterProperties;
32-
import com.tencent.cloud.polaris.router.endpoint.PolarisRouterEndpointAutoConfiguration;
3332
import org.slf4j.Logger;
3433
import org.slf4j.LoggerFactory;
3534
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -88,13 +87,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
8887
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, routerConfigModifierAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
8988
registry.registerBeanDefinition("routerConfigModifierAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
9089
RouterConfigModifierAutoConfiguration.class).getBeanDefinition());
91-
Object polarisRouterEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator,
92-
PolarisRouterEndpointAutoConfiguration.class, "polarisRouterEndpointAutoConfiguration");
93-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser,
94-
polarisRouterEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
95-
registry.registerBeanDefinition("polarisRouterEndpointAutoConfiguration",
96-
BeanDefinitionBuilder.genericBeanDefinition(
97-
PolarisRouterEndpointAutoConfiguration.class).getBeanDefinition());
9890
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
9991
}
10092
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2022-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/CircuitBreakerBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.tencent.cloud.polaris.circuitbreaker.config.PolarisCircuitBreakerAutoConfiguration;
2727
import com.tencent.cloud.polaris.circuitbreaker.config.PolarisCircuitBreakerBootstrapConfiguration;
2828
import com.tencent.cloud.polaris.circuitbreaker.config.PolarisCircuitBreakerFeignClientAutoConfiguration;
29-
import com.tencent.cloud.polaris.circuitbreaker.endpoint.PolarisCircuitBreakerEndpointAutoConfiguration;
3029
import org.slf4j.Logger;
3130
import org.slf4j.LoggerFactory;
3231
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -95,10 +94,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
9594
GatewayPolarisCircuitBreakerAutoConfiguration.class).getBeanDefinition());
9695
}
9796
}
98-
Object polarisCircuitBreakerEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisCircuitBreakerEndpointAutoConfiguration.class, "polarisCircuitBreakerEndpointAutoConfiguration");
99-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisCircuitBreakerEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
100-
registry.registerBeanDefinition("polarisCircuitBreakerEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
101-
PolarisCircuitBreakerEndpointAutoConfiguration.class).getBeanDefinition());
10297
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
10398
}
10499
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2022-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/CommonBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import cn.polarismesh.agent.plugin.spring.cloud.common.BeanInjector;
2222
import cn.polarismesh.agent.plugin.spring.cloud.common.Constant;
2323
import com.tencent.cloud.common.metadata.config.MetadataAutoConfiguration;
24-
import com.tencent.cloud.common.metadata.endpoint.PolarisMetadataEndpointAutoConfiguration;
2524
import com.tencent.cloud.common.util.ApplicationContextAwareUtils;
2625
import com.tencent.cloud.polaris.context.logging.PolarisLoggingApplicationListener;
2726
import org.slf4j.Logger;
@@ -51,10 +50,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
5150
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, metadataAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
5251
registry.registerBeanDefinition("metadataAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
5352
MetadataAutoConfiguration.class).getBeanDefinition());
54-
Object polarisMetadataEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisMetadataEndpointAutoConfiguration.class, "polarisMetadataEndpointAutoConfiguration");
55-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisMetadataEndpointAutoConfiguration,Constant.DEFAULT_EXCLUSION_FILTER);
56-
registry.registerBeanDefinition("polarisMetadataEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
57-
PolarisMetadataEndpointAutoConfiguration.class).getBeanDefinition());
5853
Object applicationContextAwareUtils = ReflectionUtils.invokeConstructor(configClassCreator, ApplicationContextAwareUtils.class, "applicationContextAwareUtils");
5954
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, applicationContextAwareUtils, Constant.DEFAULT_EXCLUSION_FILTER);
6055
registry.registerBeanDefinition("applicationContextAwareUtils", BeanDefinitionBuilder.genericBeanDefinition(

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2022-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/ConfigBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import cn.polarismesh.agent.plugin.spring.cloud.common.Utils;
2424
import com.tencent.cloud.polaris.config.PolarisConfigAutoConfiguration;
2525
import com.tencent.cloud.polaris.config.PolarisConfigBootstrapAutoConfiguration;
26-
import com.tencent.cloud.polaris.config.endpoint.PolarisConfigEndpointAutoConfiguration;
2726
import org.slf4j.Logger;
2827
import org.slf4j.LoggerFactory;
2928
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -86,10 +85,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
8685
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisConfigAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
8786
registry.registerBeanDefinition("polarisConfigAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
8887
PolarisConfigAutoConfiguration.class).getBeanDefinition());
89-
Object polarisConfigEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisConfigEndpointAutoConfiguration.class, "polarisConfigEndpointAutoConfiguration");
90-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisConfigEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
91-
registry.registerBeanDefinition("polarisConfigEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
92-
PolarisConfigEndpointAutoConfiguration.class).getBeanDefinition());
9388
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
9489
}
9590
}

polaris-agent-plugins/spring-cloud-plugins/spring-cloud-2022-plugin/src/main/java/cn/polarismesh/agent/plugin/spring/cloud/inject/RateLimitBeanInjector.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.tencent.cloud.polaris.ratelimit.config.PolarisRateLimitAutoConfiguration;
2525
import com.tencent.cloud.polaris.ratelimit.config.PolarisRateLimitPropertiesAutoConfiguration;
2626
import com.tencent.cloud.polaris.ratelimit.config.PolarisRateLimitPropertiesBootstrapConfiguration;
27-
import com.tencent.cloud.polaris.ratelimit.endpoint.PolarisRateLimitRuleEndpointAutoConfiguration;
2827
import org.slf4j.Logger;
2928
import org.slf4j.LoggerFactory;
3029
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -77,10 +76,6 @@ public void onApplicationStartup(Object configurationParser, Constructor<?> conf
7776
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisRateLimitPropertiesAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
7877
registry.registerBeanDefinition("polarisRateLimitPropertiesAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
7978
PolarisRateLimitPropertiesAutoConfiguration.class).getBeanDefinition());
80-
Object polarisRateLimitRuleEndpointAutoConfiguration = ReflectionUtils.invokeConstructor(configClassCreator, PolarisRateLimitRuleEndpointAutoConfiguration.class, "polarisRateLimitRuleEndpointAutoConfiguration");
81-
ReflectionUtils.invokeMethod(processConfigurationClass, configurationParser, polarisRateLimitRuleEndpointAutoConfiguration, Constant.DEFAULT_EXCLUSION_FILTER);
82-
registry.registerBeanDefinition("polarisRateLimitRuleEndpointAutoConfiguration", BeanDefinitionBuilder.genericBeanDefinition(
83-
PolarisRateLimitRuleEndpointAutoConfiguration.class).getBeanDefinition());
8479
LOGGER.info("[PolarisJavaAgent] success to inject application bean definitions for module {}", getModule());
8580
}
8681
}

0 commit comments

Comments
 (0)