@Override public void visitEnd() { super.visitEnd(); if (isUtil) { return; } if (httpMethods.isEmpty()) { // start(*) match httpMethods.addAll(H.Method.actionMethods()); } final List<Router> routers = routers(); if (!noDefPath && paths.isEmpty()) { paths.add(""); } /* * Note we need to schedule route registration after all app code scanned because we need the * parent context information be set on class meta info, which is done after controller scanning */ app().jobManager().on(SysEventId.APP_CODE_SCANNED, "ActionAnnotationVisitor:registerRoute-" + registerRouteTaskCounter.getAndIncrement(), new RouteRegister(envMatched, httpMethods, paths, methodName, routers, classInfo, classInfo.isAbstract() && !isStatic, isVirtual)); }
@Override public void visitEnd() { super.visitEnd(); if (isUtil) { return; } if (httpMethods.isEmpty()) { // start(*) match httpMethods.addAll(H.Method.actionMethods()); } final List<Router> routers = routers(); if (!noDefPath && paths.isEmpty()) { paths.add(""); } /* * Note we need to schedule route registration after all app code scanned because we need the * parent context information be set on class meta info, which is done after controller scanning */ app().jobManager().on(SysEventId.APP_CODE_SCANNED, "ActionAnnotationVisitor:registerRoute-" + registerRouteTaskCounter.getAndIncrement(), new RouteRegister(envMatched, httpMethods, paths, methodName, routers, classInfo, classInfo.isAbstract() && !isStatic, isVirtual)); }