Class ForwardingWeldInstance<T>

  • All Implemented Interfaces:
    jakarta.enterprise.inject.Instance<T>, jakarta.inject.Provider<T>, Iterable<T>, org.jboss.weld.inject.WeldInstance<T>

    public abstract class ForwardingWeldInstance<T>
    extends Object
    implements org.jboss.weld.inject.WeldInstance<T>
    Forwarding implementation of Instance.
    Author:
    Martin Kouba
    • Constructor Detail

      • ForwardingWeldInstance

        public ForwardingWeldInstance()
    • Method Detail

      • delegate

        public abstract org.jboss.weld.inject.WeldInstance<T> delegate()
      • get

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

        public org.jboss.weld.inject.WeldInstance<T> select​(Annotation... qualifiers)
        Specified by:
        select in interface jakarta.enterprise.inject.Instance<T>
        Specified by:
        select in interface org.jboss.weld.inject.WeldInstance<T>
      • select

        public <U extends T> org.jboss.weld.inject.WeldInstance<U> select​(Class<U> subtype,
                                                                          Annotation... qualifiers)
        Specified by:
        select in interface jakarta.enterprise.inject.Instance<T>
        Specified by:
        select in interface org.jboss.weld.inject.WeldInstance<T>
      • select

        public <U extends T> org.jboss.weld.inject.WeldInstance<U> select​(jakarta.enterprise.util.TypeLiteral<U> subtype,
                                                                          Annotation... qualifiers)
        Specified by:
        select in interface jakarta.enterprise.inject.Instance<T>
        Specified by:
        select in interface org.jboss.weld.inject.WeldInstance<T>
      • isUnsatisfied

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

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

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

        public org.jboss.weld.inject.WeldInstance.Handler<T> getHandler()
        Specified by:
        getHandler in interface org.jboss.weld.inject.WeldInstance<T>
      • handlers

        public Iterable<org.jboss.weld.inject.WeldInstance.Handler<T>> handlers()
        Specified by:
        handlers in interface org.jboss.weld.inject.WeldInstance<T>
      • getPriorityComparator

        public Comparator<org.jboss.weld.inject.WeldInstance.Handler<?>> getPriorityComparator()
        Specified by:
        getPriorityComparator in interface org.jboss.weld.inject.WeldInstance<T>