Class TypesCtr
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.TypesCtr
- All Implemented Interfaces:
Types
contains all the parsed types references.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionStack on type proxy as they have been instantiated in FILO order.private final ConcurrentMap
<Class, ConcurrentMap<String, TypeProxy<Type>>> Storage indexed by TYPE : interface | class | annotation and then by name.private final ConcurrentMap
<String, TypeProxy<Type>> Map of encountered types which we don't know if it is an interface, class or annotation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns a unmodifiable list of collected types obtained during the parsing activity<T extends Type>
TReturns a Model instance given a nameReturns a Type instance given a namevoid
onNotVisitedEntries
(TypesCtr.ProxyTask proxyTask) Runs a task on each non visited types parsing discovered.
-
Field Details
-
storage
Storage indexed by TYPE : interface | class | annotation and then by name. -
unknownTypesStorage
Map of encountered types which we don't know if it is an interface, class or annotation -
nonVisited
Stack on type proxy as they have been instantiated in FILO order.
-
-
Constructor Details
-
TypesCtr
public TypesCtr()
-
-
Method Details
-
getBy
Description copied from interface:Types
Returns a Type instance given a name -
getBy
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
-
getHolder
-
getHolder
-
onNotVisitedEntries
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
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
-