Call Sequence of Spring Boot when API call is invoked.

 Please note that this is incomplete and not accurate, and I'm merely jotting down anything that I've found out, as I'm short on time while writing this.

When the API is called, the call sequence within the spring boot library is shown below:

In the org.springframework:spring.webmvc library, specifically in the RequestMappingHandlerAdapter class, the call sequence: 

1) handleInternal method, it will check session. 

2) invokeHandlerMethod that I think it will handle the passing of parameter. (Note that this is just an assumption) 

3) getDataBinderFactory method, which i think will handle the binding of the value from the parameter into the endpoints parameter request. 

4)  createInitBinderMethod method, which i think will make the parameter discoverable.

 5) getModelFactory method, which I think will get the list of endpoints registered

6) getSessionAttributesHandler, which handles the cases when session is found or not

7) createInvocableHandlerMethod, which handles the endpoint to be callable.

Then, the endpoint is then called.

Comments

Popular posts from this blog

Support for the experimental syntax 'decorators' isn't currently enabled (5:3):

How to add environment variables into Heroku container

Running CQL scripts in Cassandra