| Modifier and Type | Field and Description |
|---|---|
| private final Hk2ThreadLocal | |
| private final ReentrantLock | |
| private final ServiceLocatorImpl | |
| private volatile ProxyUtilities | |
| private final Hk2ThreadLocal | threadLocalAnnotationCache
Must not be static, otherwise it can leak when using thread pools |
| private final Hk2ThreadLocal | threadLocalAutoAnalyzerNameCache
Must not be static, otherwise it can leak when using thread pools |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private AnnotatedElementAnnotationInfo | |
| public String | Returns: The name of the analyzer (null for default)The class to get the analyzer name from c)Gets the analyzer name from the Service annotation |
| private Annotation | Returns: The annotation that is the inject annotation, or null if no inject annotation was foundThe service locator to use (as it will get all
the annotations that were added on as well as the normal Inject) locator, final AnnotatedElement the annotated annotated annotated, final boolean check the params if true checkParams, final int index of constructor or method parameter which which will be checked
for inject annotations. The position)position parameter is only used when
annotated is method or constructor otherwise the value will be ignored.Gets the annotation that was used for the injection |
| public InjectionResolver | Returns: Injection resolver used to resolve the injection for the injecteeThe locator to use when finding the resolver locator, Injectee Injectee from which the annotation should be extracted injectee)Returns an injection resolver for the injectee |
| pack-priv InjectionResolver | Returns: The scope of this class or producer method. If no scope is found will return the dependent scopeThe locator to use when finding the resolver locator, AnnotatedElement The annotated class or producer method annotatedGuy)Returns an injection resolver for this AnnotatedElement. |
| private InjectionResolver | |
| public ProxyUtilities | |
| pack-priv boolean | Returns: True if element contains at least one inject annotationthe annotated element annotated)Checks whether an annotated element has any annotation that was used for the injection |
| public void | |
| public void |
| hasInjectCache | back to summary |
|---|---|
| private final Hk2ThreadLocal<WeakHashMap<AnnotatedElement, Boolean>> hasInjectCache | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| parent | back to summary |
|---|---|
| private final ServiceLocatorImpl parent | |
| proxyUtilities | back to summary |
|---|---|
| private volatile ProxyUtilities proxyUtilities | |
| threadLocalAnnotationCache | back to summary |
|---|---|
| private final Hk2ThreadLocal<WeakHashMap<AnnotatedElement, SoftAnnotatedElementAnnotationInfo>> threadLocalAnnotationCache Must not be static, otherwise it can leak when using thread pools | |
| threadLocalAutoAnalyzerNameCache | back to summary |
|---|---|
| private final Hk2ThreadLocal<WeakHashMap<Class<?>, String>> threadLocalAutoAnalyzerNameCache Must not be static, otherwise it can leak when using thread pools | |
| PerLocatorUtilities | back to summary |
|---|---|
| pack-priv PerLocatorUtilities(ServiceLocatorImpl parent) | |
| computeElementAnnotationInfo | back to summary |
|---|---|
| private AnnotatedElementAnnotationInfo computeElementAnnotationInfo(AnnotatedElement ae) | |
| getAutoAnalyzerName | back to summary |
|---|---|
| public String getAutoAnalyzerName(Class<?> c) Gets the analyzer name from the Service annotation | |
| getInjectAnnotation | back to summary |
|---|---|
| private Annotation getInjectAnnotation(final ServiceLocatorImpl locator, final AnnotatedElement annotated, final boolean checkParams, final int position) Gets the annotation that was used for the injection
| |
| getInjectionResolver | back to summary |
|---|---|
| public InjectionResolver Returns an injection resolver for the injectee
| |
| getInjectionResolver | back to summary |
|---|---|
| pack-priv InjectionResolver Returns an injection resolver for this AnnotatedElement. The method cannot be used for constructors or methods.
| |
| getInjectionResolver | back to summary |
|---|---|
| private InjectionResolver | |
| getProxyUtilities | back to summary |
|---|---|
| public ProxyUtilities getProxyUtilities() | |
| hasInjectAnnotation | back to summary |
|---|---|
| pack-priv boolean hasInjectAnnotation(AnnotatedElement annotated) Checks whether an annotated element has any annotation that was used for the injection
| |
| releaseCaches | back to summary |
|---|---|
| public void releaseCaches() | |
| shutdown | back to summary |
|---|---|
| public void shutdown() | |