janishar / android-mvp-interactor-architecture

Extension of the android-mvp-architecture for very large projects.
Apache License 2.0
405 stars 97 forks source link

Question: What is the reason of "@ApplicationContext"? #4

Closed Rainer-Lang closed 6 years ago

Rainer-Lang commented 6 years ago

Why is it used - and for what? Thanks.

UPDATE: Is it something like @Named? UPDATE 2: I found something: https://stackoverflow.com/a/39966489/4534276 I think my question is now "answered". :-)

Rainer-Lang commented 6 years ago

But I just want to know what do you suggest. What are the pros and cons?

amitshekhariitbhu commented 6 years ago

Yes, that is Named and it is also for readability purpose so that caller knows which context(application or other).