Class TypeProxy<T extends Type>
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.TypeProxy<T>
Proxy for types, used in place until the type can be properly instantiated.
Proxy type also holds all incoming reference to the type.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<ClassModel> private final String
private final TypeProxy.Notifier
<T> private T
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionTypeProxy
(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. -
Method Summary
Modifier and TypeMethodDescriptionstatic <U extends Type>
Collection<U> adapter
(Collection<TypeProxy<U>> source) void
addFieldRef
(FieldModel field) void
addImplementation
(ClassModel classModel) void
addSubTypeRef
(Type subType) get()
getName()
getRefs()
boolean
void
toString()
void
visited()
-
Field Details
-
value
-
visited
private volatile boolean visited -
name
-
notifier
-
fieldRefs
-
subTypeRefs
-
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 resolvedname
- type name
-
-
Method Details