Spring Framework ConcurrentReferenceHashMap - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ConcurrentReferenceHashMap class.

This code example shows how to use the following methods:
 * @see TypeDescriptor#nested(Property, int) 
 */ 
public final class Property {
 
	private static Map<Property, Annotation[]> annotationCache =
			new ConcurrentReferenceHashMap<Property, Annotation[]>();
 
	private final Class<?> objectType;
 
	private final Method readMethod;
 
	private final Method writeMethod;
 
	private final String name;
 
	private final MethodParameter methodParameter;
 
	private Annotation[] annotations;
 
 
5
CodeRank
This code example shows how to use the following methods:
 */ 
public abstract class BeanUtils {
 
	private static final Log logger = LogFactory.getLog(BeanUtils.class);
 
	private static final Set<Class<?>> unknownEditorTypes =
			Collections.newSetFromMap(new ConcurrentReferenceHashMap<Class<?>, Boolean>(64));
 
 
	/** 
	 * Convenience method to instantiate a class using its no-arg constructor. 
	 * As this method doesn't try to load classes by name, it should avoid 
	 * class-loading issues. 
	 * @param clazz class to instantiate 
	 * @return the new instance 
	 * @throws BeanInstantiationException if the bean cannot be instantiated 
	 */ 
	public static <T> T instantiate(Class<T> clazz) throws BeanInstantiationException {
		Assert.notNull(clazz, "Class must not be null");
		if (clazz.isInterface()) {
3
CodeRank