Class MembersInjectorStore


  • final class MembersInjectorStore
    extends java.lang.Object
    Members injectors by type.
    • Method Detail

      • hasTypeListeners

        public boolean hasTypeListeners()
        Returns true if any type listeners are installed. Other code may take shortcuts when there aren't any type listeners.
      • remove

        boolean remove​(TypeLiteral<?> type)
        Purges a type literal from the cache. Use this only if the type is not actually valid for binding and needs to be purged. (See issue 319 and ImplicitBindingTest#testCircularJitBindingsLeaveNoResidue and #testInstancesRequestingProvidersForThemselvesWithChildInjectors for examples of when this is necessary.)

        Returns true if the type was stored in the cache, false otherwise.

      • getInjectors

        com.google.common.collect.ImmutableList<SingleMemberInjector> getInjectors​(java.util.Set<InjectionPoint> injectionPoints,
                                                                                   Errors errors)
        Returns the injectors for the specified injection points.
      • getAllInjectionPoints

        com.google.common.collect.ImmutableListMultimap<TypeLiteral<?>,​InjectionPoint> getAllInjectionPoints()