Class InstanceImpl<T>

    • Method Detail

      • iterator

        public Iterator<T> iterator()
        Description copied from interface: InjectableInstance
        This method attempts to resolve ambiguities.

        In general, if multiple beans are eligible then the container eliminates all beans that are:

        • not alternatives, except for producer methods and fields of beans that are alternatives,
        • default beans.
        Specified by:
        iterator in interface InjectableInstance<T>
        Specified by:
        iterator in interface Iterable<T>
        Returns:
        an iterator over the contextual references of the disambiguated beans
        See Also:
        DefaultBean
      • get

        public T get()
        Specified by:
        get in interface javax.inject.Provider<T>
      • isUnsatisfied

        public boolean isUnsatisfied()
        Specified by:
        isUnsatisfied in interface javax.enterprise.inject.Instance<T>
      • isAmbiguous

        public boolean isAmbiguous()
        Specified by:
        isAmbiguous in interface javax.enterprise.inject.Instance<T>
      • destroy

        public void destroy​(Object instance)
        Specified by:
        destroy in interface javax.enterprise.inject.Instance<T>
      • hasDependentInstances

        public boolean hasDependentInstances()
      • clearCache

        public void clearCache()
        Description copied from interface: InjectableInstance
        Removes the cached result of the Provider.get() operation. If the cached result was a contextual reference of a Dependent bean, destroy the reference as well.
        Specified by:
        clearCache in interface InjectableInstance<T>
        See Also:
        WithCaching