Class TypeProxy<T extends Type>

java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.TypeProxy<T>

public class TypeProxy<T extends Type> extends Object
Proxy for types, used in place until the type can be properly instantiated. Proxy type also holds all incoming reference to the type.
  • Field Details

    • value

      private T extends Type value
    • visited

      private volatile boolean visited
    • name

      private final String name
    • notifier

      private final TypeProxy.Notifier<T extends Type> notifier
    • fieldRefs

      private final List<Member> fieldRefs
    • subTypeRefs

      private final List<Type> subTypeRefs
    • implementations

      private final List<ClassModel> implementations
  • Constructor Details

    • TypeProxy

      TypeProxy(TypeProxy.Notifier<T> notifier, String name)
      Creates a new type proxy, this ctor is package private as many other activities must be performed when a new proxy type is created.
      Parameters:
      notifier - notification handle to notify receiver the proxied type has been resolved
      name - type name
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • set

      public void set(T value)
    • get

      public T get()
    • getName

      public String getName()
    • addFieldRef

      public void addFieldRef(FieldModel field)
    • getRefs

      public List<Member> getRefs()
    • addSubTypeRef

      public void addSubTypeRef(Type subType)
    • getSubTypeRefs

      public List<Type> getSubTypeRefs()
    • addImplementation

      public void addImplementation(ClassModel classModel)
    • getImplementations

      public List<ClassModel> getImplementations()
    • adapter

      public static <U extends Type> Collection<U> adapter(Collection<TypeProxy<U>> source)
    • visited

      public void visited()
    • isVisited

      public boolean isVisited()