Class MethodCall
java.lang.Object
ru.vyarus.dropwizard.guice.url.model.MethodCall
Recorded method call on resource class. The call may include sub-resource calls like:
resource.subResource(args).method(args). In this case the root would be a sub-resource method call,
and a subCall would be a method call on sub-resource (there might be multiple sib-resource calls).- Since:
- 25.09.2025
-
Constructor Summary
ConstructorsConstructorDescriptionMethodCall(Class<?> resource, Method method, Object... args) Create a method call info. -
Method Summary
Modifier and TypeMethodDescriptionObject[]getArgs()Class<?>@Nullable MethodCallvoidsetSubCall(MethodCall subCall) Set sub method call (call chain case).
-
Constructor Details
-
MethodCall
Create a method call info.- Parameters:
resource- resource typemethod- called methodargs- call arguments
-
-
Method Details
-
getResource
- Returns:
- resource class where method was called
-
getMethod
- Returns:
- method instance
-
getArgs
- Returns:
- call arguments
-
getSubCall
- Returns:
- sub method call
-
setSubCall
Set sub method call (call chain case).- Parameters:
subCall- sub method call
-