@Singleton public class JustInTimeInjectionResolverImpl extends java.lang.Object implements JustInTimeInjectionResolver
Modifier and Type | Field and Description |
---|---|
private DynamicConfigurationService |
dcs |
private java.util.Collection<?> |
excludes |
Constructor and Description |
---|
JustInTimeInjectionResolverImpl() |
JustInTimeInjectionResolverImpl(java.util.Collection<?> excludes) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isLookup(Injectee failedInjectionPoint)
Returns
true if the supplied Injectee
represents a service lookup rather than a true injection point. |
boolean |
justInTimeResolution(Injectee failedInjectionPoint)
This method will be called whenever an injection point cannot be resolved.
|
private final java.util.Collection<?> excludes
@Inject private DynamicConfigurationService dcs
public JustInTimeInjectionResolverImpl()
public JustInTimeInjectionResolverImpl(java.util.Collection<?> excludes)
protected boolean isLookup(Injectee failedInjectionPoint)
true
if the supplied Injectee
represents a service lookup rather than a true injection point.public boolean justInTimeResolution(Injectee failedInjectionPoint)
JustInTimeInjectionResolver
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.
This method can be called on multiple threads with different or the same
Injectee
. Therefore care must be taken in this method to not add
the same descriptor more than once
justInTimeResolution
in interface JustInTimeInjectionResolver
failedInjectionPoint
- The injection point that failed to resolveServiceLocator
which may be used to resolve the Injectee
. False if this method
did not add a descriptor to the ServiceLocator
that might help
resolve the injection point