Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ public synchronized <T> void registerInjector(
/**
* Register an injector for a particular type predicate.
*
* <p>The predicate should only
* return true if the injected type is assignable to the tested type. This predicate overload
* is provided in addition to {@link #registerInjector(Class, ParameterInjector)} to allow
* for exact, non-exact, or custom predicates, however is still bound by the aforementioned constraint.
* Failure to adhere to this will result in runtime exceptions.</p>
*
* @param predicate A predicate that matches if the injector should be used for a type
* @param injector The injector that should inject the value into the command method
* @param <T> Injected type
Expand Down