1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
35
35
import org .springframework .core .Ordered ;
36
36
import org .springframework .util .Assert ;
37
37
38
- import static org .springframework .batch .support .MethodInvokerUtils .getMethodInvokerByAnnotation ;
39
- import static org .springframework .batch .support .MethodInvokerUtils .getMethodInvokerForInterface ;
40
-
41
38
/**
42
39
* {@link FactoryBean} implementation that builds a listener based on the various
43
40
* lifecycle methods or annotations that are provided. There are three possible ways of
61
58
*
62
59
* @author Lucas Ward
63
60
* @author Dan Garrette
61
+ * @author Taeik Lim
64
62
* @since 2.0
65
63
* @see ListenerMetaData
66
64
*/
@@ -98,8 +96,8 @@ public Object getObject() {
98
96
Set <MethodInvoker > invokers = new HashSet <>();
99
97
100
98
MethodInvoker invoker ;
101
- invoker = getMethodInvokerForInterface (metaData .getListenerInterface (), metaData . getMethodName (), delegate ,
102
- metaData .getParamTypes ());
99
+ invoker = MethodInvokerUtils . getMethodInvokerForInterface (metaData .getListenerInterface (),
100
+ metaData .getMethodName (), delegate , metaData . getParamTypes ());
103
101
if (invoker != null ) {
104
102
invokers .add (invoker );
105
103
}
@@ -111,7 +109,8 @@ public Object getObject() {
111
109
}
112
110
113
111
if (metaData .getAnnotation () != null ) {
114
- invoker = getMethodInvokerByAnnotation (metaData .getAnnotation (), delegate , metaData .getParamTypes ());
112
+ invoker = MethodInvokerUtils .getMethodInvokerByAnnotation (metaData .getAnnotation (), delegate ,
113
+ metaData .getParamTypes ());
115
114
if (invoker != null ) {
116
115
invokers .add (invoker );
117
116
synthetic = true ;
0 commit comments