Code example for LoadingCache

Methods: get

0
 
            return null; 
        } 
 
        public Class<?> getContainerClass(String propertyName) throws ExecutionException {
            return containerClassesMap.get(propertyName);
        } 
    } 
 
    private final LoadingCache<Class<?>, GenericsCacheEntry> cache = CacheBuilder.newBuilder().weakKeys().softValues()
            .build(CacheLoader.from(new Function<Class<?>, GenericsCacheEntry>() { 
                public GenericsCacheEntry apply(java.lang.Class<?> input) { 
                    return new GenericsCacheEntry(input); 
                } 
            })); 
 
    private Class<?> getGenericCollectionType(FacesContext context, Object base, String propertyName) {
        Class<?> genericPropertyClass = null;
 
        if ((base != null) && (propertyName != null)) {
            Class<? extends Object> beanClass = base.getClass();