Class 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 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 resolver
        injectee - 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()