/** * Creates a strongly-typed proxy to access values in this {@link Dom} object, * by using the specified interface type as the proxy type. */ public <T extends ConfigBeanProxy> T createProxy(final Class<T> proxyType) { ConfigBeanProxy retVal = proxyCache.compute(proxyType); return proxyType.cast(retVal); }
/** * Create cache entry for given values. * * @param k cache entry key. * @param v cache entry value. * @param dropMe should this entry be kept in the cache this must be set to false. * @return an instance of cache entry. */ public HybridCacheEntry<V> createCacheEntry(final K k, final V v, final boolean dropMe) { return new HybridCacheEntryImpl<V>(k,v,dropMe); }
/** * Create cache entry for given values. * * @param k cache entry key. * @param v cache entry value. * @param dropMe should this entry be kept in the cache this must be set to false. * @return an instance of cache entry. */ public HybridCacheEntry<V> createCacheEntry(final K k, final V v, final boolean dropMe) { return new HybridCacheEntryImpl<V>(k,v,dropMe); }
/** * Create cache entry for given values. * * @param k cache entry key. * @param v cache entry value. * @param dropMe should this entry be kept in the cache this must be set to false. * @return an instance of cache entry. */ public HybridCacheEntry<V> createCacheEntry(final K k, final V v, final boolean dropMe) { return new HybridCacheEntryImpl<V>(k,v,dropMe); }