org.glassfish.hk2.classmodel.reflect.impl
Class TypeProxy<T extends Type>

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

public class TypeProxy<T extends Type>
extends java.lang.Object

Proxy for types, used in place until the type can be properly instantiated. Proxy type also holds all incoming reference to the type.

Author:
Jerome Dochez

Nested Class Summary
static interface TypeProxy.Notifier<T>
           
 
Constructor Summary
TypeProxy(TypeProxy.Notifier<T> notifier, java.lang.String name)
           
 
Method Summary
static
<U extends Type>
java.util.Collection<U>
adapter(java.util.Collection<TypeProxy<U>> source)
           
 T get()
           
 java.util.Set<FieldModel> getFieldRefs()
           
 java.util.Set<ClassModel> getImplementations()
           
 java.lang.String getName()
           
 java.util.Set<Type> getSubTypeRefs()
           
 void set(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeProxy

public TypeProxy(TypeProxy.Notifier<T> notifier,
                 java.lang.String name)
Method Detail

set

public void set(T value)

get

public T get()

getName

public java.lang.String getName()

getFieldRefs

public java.util.Set<FieldModel> getFieldRefs()

getSubTypeRefs

public java.util.Set<Type> getSubTypeRefs()

getImplementations

public java.util.Set<ClassModel> getImplementations()

adapter

public static <U extends Type> java.util.Collection<U> adapter(java.util.Collection<TypeProxy<U>> source)


Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.