This commit is contained in:
Redkale
2020-09-17 17:54:59 +08:00
parent 4dfd528533
commit b6ecdef0c5
2 changed files with 3 additions and 2 deletions

View File

@@ -1952,7 +1952,7 @@ public final class Rest {
}
if (listeners != null && !listeners.isEmpty()) {
for (RestDyncListener listener : listeners) {
listener.invoke(classLoader, userType, serviceType, method);
listener.invoke(classLoader, userType, serviceType, method, entry.mappingurl);
}
}
} // end for each

View File

@@ -47,7 +47,8 @@ public interface RestDyncListener {
* @param baseServletType Rest的Servlet基类
* @param serviceType Service类
* @param method Service的RestMapping方法
* @param mappingurl HttpMapping对应的url
*/
public void invoke(final ClassLoader classLoader, final Class baseServletType,
final Class<? extends Service> serviceType, final Method method);
final Class<? extends Service> serviceType, final Method method, final String mappingurl);
}