Class TypesCtr
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.impl.TypesCtr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TypesCtr.ProxyTask
-
Constructor Summary
Constructors Constructor Description TypesCtr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearNonVisitedEntries()
Collection<Type>
getAllTypes()
Returns a unmodifiable list of collected types obtained during the parsing activity<T extends Type>
TgetBy(Class<T> type, String name)
Returns a Model instance given a nameType
getBy(String name)
Returns a Type instance given a nameTypeProxy<Type>
getHolder(String name)
<T extends Type>
TypeProxy<Type>getHolder(String name, Class<T> type)
void
onNotVisitedEntries(TypesCtr.ProxyTask proxyTask)
Runs a task on each non visited types parsing discovered.
-
-
-
Method Detail
-
getBy
public Type getBy(String name)
Description copied from interface:Types
Returns a Type instance given a name
-
getBy
public <T extends Type> T getBy(Class<T> type, String name)
Description copied from interface:Types
Returns a Model instance given a name- Specified by:
getBy
in interfaceTypes
- Parameters:
type
- type of the requested model (seeExtensibleType
derivatives)name
- the requested type name- Returns:
- the type instance or null if not found
-
onNotVisitedEntries
public void onNotVisitedEntries(TypesCtr.ProxyTask proxyTask)
Runs a task on each non visited types parsing discovered.- Parameters:
proxyTask
- the task to run on each non visited type.
-
clearNonVisitedEntries
public void clearNonVisitedEntries()
-
getAllTypes
public Collection<Type> getAllTypes()
Description copied from interface:Types
Returns a unmodifiable list of collected types obtained during the parsing activity- Specified by:
getAllTypes
in interfaceTypes
- Returns:
- list of types
-
-