Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update doc #184

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions solon/src/main/java/org/noear/solon/core/BeanContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public <T extends Annotation> InterceptorEntity beanInterceptorGet(Class<T> anno
*
* @param index 执行顺序
* @deprecated 2.4
* @see #beanInterceptorAdd(Class, Interceptor, int)
*/
@Deprecated
public <T extends Annotation> void beanAroundAdd(Class<T> annoClz, Interceptor interceptor, int index) {
Expand All @@ -243,6 +244,7 @@ public <T extends Annotation> void beanAroundAdd(Class<T> annoClz, Interceptor i
* 添加环绕处理
*
* @deprecated 2.4
* @see #beanInterceptorAdd(Class, Interceptor)
*/
@Deprecated
public <T extends Annotation> void beanAroundAdd(Class<T> annoClz, Interceptor interceptor) {
Expand All @@ -253,6 +255,7 @@ public <T extends Annotation> void beanAroundAdd(Class<T> annoClz, Interceptor i
* 获取环绕处理
*
* @deprecated 2.4
* @see #beanInterceptorGet(Class)
*/
@Deprecated
public <T extends Annotation> InterceptorEntity beanAroundGet(Class<T> annoClz) {
Expand Down
5 changes: 4 additions & 1 deletion solon/src/main/java/org/noear/solon/core/event/EventBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand All @@ -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){
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -213,4 +216,4 @@ public HH(Class<?> type, EventListener listener) {
this.l = listener;
}
}
}
}