Added javadocs for injection and extensions #171
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This documentation could have potentially saved me hours when I was first writing an Arquillian extension - you assume the injection framework is going to work like any other, where you bind components either using annotations or some module API (which is what the loadable extension API looks like with its service registration method), and even though through reverse engineering I'd worked out that components could be provided by
InstanceProducer.set()
, it never occurred to me that that was an API that I was supposed to use, I thought that was an internal implementation detail that Arquillian would invoke, for example, for each service registered by a loadable extension. So I spent hours scratching my head trying to understand why the services I had registered weren't being injected, and trying to find the code that was meant to register each service with anInstanceProducer
(which of course didn't exist).