java.lang.Object
org.jvnet.hk2.internal.PerLocatorUtilities
These utilities are per service locator. Another service locator may have a different view
of the caches stored here
- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptiongetAutoAnalyzerName(Class<?> c) Gets the analyzer name from the Service annotationorg.glassfish.hk2.api.InjectionResolver<?>getInjectionResolver(ServiceLocatorImpl locator, org.glassfish.hk2.api.Injectee injectee) Returns an injection resolver for the injecteevoidvoidshutdown()
-
Method Details
-
getAutoAnalyzerName
Gets the analyzer name from the Service annotation- Parameters:
c- The class to get the analyzer name from- Returns:
- The name of the analyzer (null for default)
-
getInjectionResolver
public org.glassfish.hk2.api.InjectionResolver<?> getInjectionResolver(ServiceLocatorImpl locator, org.glassfish.hk2.api.Injectee injectee) throws IllegalStateException Returns an injection resolver for the injectee- Parameters:
locator- The locator to use when finding the resolverinjectee- Injectee from which the annotation should be extracted- Returns:
- Injection resolver used to resolve the injection for the injectee
- Throws:
IllegalStateException- If we could not find a valid resolver
-
releaseCaches
public void releaseCaches() -
shutdown
public void shutdown() -
getProxyUtilities
-