|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Contract public interface JustInTimeInjectionResolver
The JustInTimeInjectionResolver is called when an injection point cannot find anything to inject. It allows a third party systems to dynamically add descriptors to the system whenever an injection point would have failed to resolve (or an Optional injection point found no service definitions).
All injection resolvers registered with the system will be called in a random order. Resolvers should therefore not rely on the ordering of installed injection resolvers. Any injection resolvers added as a result of this callback will NOT be called until the next injection resolution failure.
Implementations of this interface are placed into the registry like any other service.
If any of the registered injection resolvers commits a dynamic change then the system will try one more time to resolve the injection before failing (or returning null if the injection point is Optional).
Method Summary | |
---|---|
boolean |
justInTimeResolution(Injectee failedInjectionPoint)
This method will be called whenever an injection point cannot be resolved. |
Method Detail |
---|
boolean justInTimeResolution(Injectee failedInjectionPoint)
If this method throws an exception that exception will be added to the set of exceptions in the MultiException that may be thrown from the injection resolver
failedInjectionPoint
- The injection point that failed to resolve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |