org.jvnet.hk2.testing.junit.internal
Class JustInTimeInjectionResolverImpl
java.lang.Object
org.jvnet.hk2.testing.junit.internal.JustInTimeInjectionResolverImpl
- All Implemented Interfaces:
- JustInTimeInjectionResolver
@Singleton
public class JustInTimeInjectionResolverImpl
- extends Object
- implements JustInTimeInjectionResolver
- Author:
- jwells
Method Summary |
boolean |
justInTimeResolution(Injectee failedInjectionPoint)
This method will be called whenever an injection point cannot be resolved. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JustInTimeInjectionResolverImpl
public JustInTimeInjectionResolverImpl()
justInTimeResolution
public boolean justInTimeResolution(Injectee failedInjectionPoint)
- Description copied from interface:
JustInTimeInjectionResolver
- This method will be called whenever an injection point cannot be resolved. If this
method adds anything to the configuration it should return true. Otherwise it
should return false. The injection point that failed to be resolved is given
in 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
- Specified by:
justInTimeResolution
in interface JustInTimeInjectionResolver
- Parameters:
failedInjectionPoint
- The injection point that failed to resolve
- Returns:
- true if the system should commit this configuration and retry the injection
point
Copyright © 2013 Oracle Corporation. All Rights Reserved.