more stuff
This commit is contained in:
parent
b4dc4bc910
commit
839d0f030f
1 changed files with 26 additions and 30 deletions
|
@ -21,15 +21,7 @@ public class EventListener {
|
|||
Method method = methods[i];
|
||||
if(method.getDeclaredAnnotations().length == 0)
|
||||
continue;
|
||||
if(
|
||||
method.getParameterCount() != 3 ||
|
||||
method.getParameterTypes()[0] != Request.class ||
|
||||
method.getParameterTypes()[1] != Callback.class ||
|
||||
method.getParameterTypes()[2] != Callback.class ||
|
||||
method.getReturnType() != void.class
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if(method.getReturnType() == void.class) {
|
||||
boolean usable = true;
|
||||
if(method.getDeclaredAnnotation(GET.class) != null && !request.method.equals("GET")) {
|
||||
usable = false;
|
||||
|
@ -54,5 +46,9 @@ public class EventListener {
|
|||
}
|
||||
}
|
||||
}
|
||||
else if(method.getReturnType() == Response.class) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue