org.glassfish.hk2.classmodel.reflect.impl
Class TypesCtr

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.TypesCtr
All Implemented Interfaces:
Types

public class TypesCtr
extends java.lang.Object
implements Types

contains all the parsed types references.

Author:
Jerome Dochez

Constructor Summary
TypesCtr()
           
 
Method Summary
 java.util.Collection<Type> getAllTypes()
          Returns a unmodifiable list of collected types obtained during the parsing activity
<T extends Type>
T
getBy(java.lang.Class<T> type, java.lang.String name)
          Returns a Model instance given a name
 Type getBy(java.lang.String name)
          Returns a Type instance given a name
<T extends Type>
TypeProxy<Type>
getHolder(java.lang.String name, java.lang.Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypesCtr

public TypesCtr()
Method Detail

getBy

public Type getBy(java.lang.String name)
Description copied from interface: Types
Returns a Type instance given a name

Specified by:
getBy in interface Types
Parameters:
name - the requested type name
Returns:
a type instance

getBy

public <T extends Type> T getBy(java.lang.Class<T> type,
                                java.lang.String name)
Description copied from interface: Types
Returns a Model instance given a name

Specified by:
getBy in interface Types
Parameters:
type - type of the requested model
name - the requested type name
Returns:
the type instance or null if not found

getHolder

public <T extends Type> TypeProxy<Type> getHolder(java.lang.String name,
                                                  java.lang.Class<T> type)

getAllTypes

public java.util.Collection<Type> getAllTypes()
Description copied from interface: Types
Returns a unmodifiable list of collected types obtained during the parsing activity

Specified by:
getAllTypes in interface Types
Returns:
list of types


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