I’m reading a book about DI that always talks about DI frameworks “instantiating an object graph”. Why say it this way rather than “instantiating objects”?
I’m reading a book about DI that always talks about DI frameworks instantiating an
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A graph of objects consists of objects that hold references to each other. Another name for a graph in this context is a network.
An IOC system wouldn’t be much use if it forgot to set up the references between the objects! It’s the way the objects automatically get references to other objects they need that is the whole value of an IOC system.