Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what are collaborators in java?

843789Mar 12 2010 — edited Mar 14 2010
hey, i was reading an article about dependency injection and it says:

"Dependency Injection has several important benefits: For example

-Because components don't need to look up collaborators at runtime, they're much simpler to write and maintain.....

- A good IoC implementation preserves strong typing, If you need to use a generic factory to look up collaborators, you have to cast the results to the desired type....

Could someone please explain what collaborators are, or give me some good references to read regarding them? Haven't really found any good explanation through google.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2010
Added on Mar 12 2010
4 comments
2,710 views