diff --git a/solon-projects/solon-base-extend/solon.cloud.metrics/src/main/java/org/noear/solon/cloud/metrics/integration/XPluginImpl.java b/solon-projects/solon-base-extend/solon.cloud.metrics/src/main/java/org/noear/solon/cloud/metrics/integration/XPluginImpl.java index 01e8a7e29c..5cdd0b60db 100644 --- a/solon-projects/solon-base-extend/solon.cloud.metrics/src/main/java/org/noear/solon/cloud/metrics/integration/XPluginImpl.java +++ b/solon-projects/solon-base-extend/solon.cloud.metrics/src/main/java/org/noear/solon/cloud/metrics/integration/XPluginImpl.java @@ -28,8 +28,8 @@ public class XPluginImpl implements Plugin { */ @Override public void start(AopContext context) { - context.beanAroundAdd(MeterCounter.class, new MeterCounterInterceptor()); - context.beanAroundAdd(MeterTimer.class, new MeterTimerInterceptor()); + context.beanInterceptorAdd(MeterCounter.class, new MeterCounterInterceptor()); + context.beanInterceptorAdd(MeterTimer.class, new MeterTimerInterceptor()); context.subBeansOfType(MeterRegistry.class, bean -> { Metrics.globalRegistry.add(bean); diff --git a/solon/src/main/java/org/noear/solon/core/BeanContainer.java b/solon/src/main/java/org/noear/solon/core/BeanContainer.java index 3b8df0729b..2c33e6c944 100644 --- a/solon/src/main/java/org/noear/solon/core/BeanContainer.java +++ b/solon/src/main/java/org/noear/solon/core/BeanContainer.java @@ -233,6 +233,7 @@ public InterceptorEntity beanInterceptorGet(Class anno * * @param index 执行顺序 * @deprecated 2.4 + * @see #beanInterceptorAdd(Class, Interceptor, int) */ @Deprecated public void beanAroundAdd(Class annoClz, Interceptor interceptor, int index) { @@ -243,6 +244,7 @@ public void beanAroundAdd(Class annoClz, Interceptor i * 添加环绕处理 * * @deprecated 2.4 + * @see #beanInterceptorAdd(Class, Interceptor) */ @Deprecated public void beanAroundAdd(Class annoClz, Interceptor interceptor) { @@ -253,6 +255,7 @@ public void beanAroundAdd(Class annoClz, Interceptor i * 获取环绕处理 * * @deprecated 2.4 + * @see #beanInterceptorGet(Class) */ @Deprecated public InterceptorEntity beanAroundGet(Class annoClz) { diff --git a/solon/src/main/java/org/noear/solon/core/event/EventBus.java b/solon/src/main/java/org/noear/solon/core/event/EventBus.java index 50f2679761..8b2156fb66 100644 --- a/solon/src/main/java/org/noear/solon/core/event/EventBus.java +++ b/solon/src/main/java/org/noear/solon/core/event/EventBus.java @@ -43,6 +43,7 @@ public static void publishAsync(Object event) { * * @param event 事件(可以是任何对象) * @deprecated 2.4 + * @see #publishAsync(Object) */ @Deprecated public static void pushAsync(Object event){ @@ -69,6 +70,7 @@ public static void publishTry(Object event) { * * @param event 事件(可以是任何对象) * @deprecated 2.4 + * @see #publishTry(Object) */ @Deprecated public static void pushTry(Object event){ @@ -99,6 +101,7 @@ public static void publish(Object event) throws RuntimeException { * * @param event 事件(可以是任何对象) * @deprecated 2.4 + * @see #publish(Object) */ @Deprecated public static void push(Object event) throws RuntimeException { @@ -213,4 +216,4 @@ public HH(Class type, EventListener listener) { this.l = listener; } } -} \ No newline at end of file +}