Top Description Inners Fields Constructors Methods
org.glassfish.hk2.classmodel.reflect.impl

public Class TypesCtr

extends Object
implements Types
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.classmodel.reflect.Types
Imports
org.glassfish.hk2.classmodel.reflect.Type, .Types, java.util.*, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, java.util.concurrent.locks.ReentrantLock

contains all the parsed types references.
Author
Jerome Dochez

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private final Stack<TypeProxy<T extends Type>>
nonVisited

Stack on type proxy as they have been instantiated in FILO order.

private final ConcurrentMap<Class<T>, ConcurrentMap<String, TypeProxy<Type>>>
storage

Storage indexed by TYPE : interface | class | annotation and then by name.

private final ConcurrentMap<String, TypeProxy<Type>>
unknownTypesStorage

Map of encountered types which we don't know if it is an interface, class or annotation

private final ReentrantLock

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public Collection<Type>
getAllTypes()

Implements org.glassfish.hk2.classmodel.reflect.Types.getAllTypes.

Returns a unmodifiable list of collected types obtained during the parsing activity

public Type
getBy(String name)

Implements org.glassfish.hk2.classmodel.reflect.Types.getBy.

Returns a Type instance given a name

public <T extends Type> T
getBy(Class<T> type, String name)

Implements org.glassfish.hk2.classmodel.reflect.Types.getBy.

Returns a Model instance given a name

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

public void
onNotVisitedEntries(TypesCtr.ProxyTask
the task to run on each non visited type.
proxyTask
)

Runs a task on each non visited types parsing discovered.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nonVisitedback to summary
private final Stack<TypeProxy<T extends Type>> nonVisited

Stack on type proxy as they have been instantiated in FILO order.

storageback to summary
private final ConcurrentMap<Class<T>, ConcurrentMap<String, TypeProxy<Type>>> storage

Storage indexed by TYPE : interface | class | annotation and then by name.

unknownTypesStorageback to summary
private final ConcurrentMap<String, TypeProxy<Type>> unknownTypesStorage

Map of encountered types which we don't know if it is an interface, class or annotation

unknownTypesStorageLockback to summary
private final ReentrantLock unknownTypesStorageLock

Constructor Detail

TypesCtrback to summary
public TypesCtr()

Method Detail

clearNonVisitedEntriesback to summary
public void clearNonVisitedEntries()
getAllTypesback to summary
public Collection<Type> getAllTypes()

Implements org.glassfish.hk2.classmodel.reflect.Types.getAllTypes.

Doc from org.glassfish.hk2.classmodel.reflect.Types.getAllTypes.

Returns a unmodifiable list of collected types obtained during the parsing activity

Annotations
@Override
getByback to summary
public Type getBy(String name)

Implements org.glassfish.hk2.classmodel.reflect.Types.getBy.

Doc from org.glassfish.hk2.classmodel.reflect.Types.getBy.

Returns a Type instance given a name

Annotations
@Override
getByback to summary
public <T extends Type> T getBy(Class<T> type, String name)

Implements org.glassfish.hk2.classmodel.reflect.Types.getBy.

Doc from org.glassfish.hk2.classmodel.reflect.Types.getBy.

Returns a Model instance given a name

Annotations
@Override
getHolderback to summary
public TypeProxy<Type> getHolder(String name)
getHolderback to summary
public <T extends Type> TypeProxy<Type> getHolder(String name, Class<T> type)
onNotVisitedEntriesback to summary
public void onNotVisitedEntries(TypesCtr.ProxyTask proxyTask)

Runs a task on each non visited types parsing discovered.

Parameters
proxyTask:TypesCtr.ProxyTask

the task to run on each non visited type.

org.glassfish.hk2.classmodel.reflect.impl back to summary

public Interface TypesCtr.ProxyTask


Method Summary

Modifier and TypeMethod and Description
public void
on(TypeProxy<?> proxy)

Method Detail

onback to summary
public void on(TypeProxy<?> proxy)