• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read an object that calls multiple methods simultaneously

 
Ashlon Hill
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

What is the flow of control for an object that calls multiple methods? Below is an example of what I'm trying to describe.



Does DomainGateway.getFactory() get executed first and the result of that then executes .getDomainInstance() then that result is stored in the customer object?

 
Hunter McMillen
Ranch Hand
Posts: 492
Firefox Browser Linux VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They execute in order from left to right. General when you are doing more than one call like that, you need the object/value etc that the first method returns in order to call the second method.

Hunter
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Gill wrote:Does DomainGateway.getFactory() get executed first and the result of that then executes .getDomainInstance() then that result is stored in the customer object


Yes this is how it is working
 
Ashlon Hill
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome, thanks for the responses ya'll!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic