Package org.jvnet.hk2.internal
Class PerLocatorUtilities
- java.lang.Object
-
- org.jvnet.hk2.internal.PerLocatorUtilities
-
public class PerLocatorUtilities extends Object
These utilities are per service locator. Another service locator may have a different view of the caches stored here- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAutoAnalyzerName(Class<?> c)
Gets the analyzer name from the Service annotationInjectionResolver<?>
getInjectionResolver(ServiceLocatorImpl locator, Injectee injectee)
Returns an injection resolver for the injecteeProxyUtilities
getProxyUtilities()
void
releaseCaches()
void
shutdown()
-
-
-
Method Detail
-
getAutoAnalyzerName
public String getAutoAnalyzerName(Class<?> c)
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 InjectionResolver<?> getInjectionResolver(ServiceLocatorImpl locator, 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
public ProxyUtilities getProxyUtilities()
-
-