/** * {@inheritDoc} */ public Element getWithLoader(Object key, CacheLoader loader, Object loaderArgument) throws CacheException { return underlyingCache.getWithLoader(key, loader, loaderArgument); }
/** * {@inheritDoc} */ public Element getWithLoader(Object arg0, CacheLoader arg1, Object arg2) throws CacheException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getWithLoader(arg0, arg1, arg2); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public Element getWithLoader(Object key, CacheLoader loader, Object loaderArgument) throws CacheException { return underlyingCache.getWithLoader(key, loader, loaderArgument); }
/** * {@inheritDoc} */ public Element getWithLoader(Object key, CacheLoader loader, Object loaderArgument) throws CacheException { return underlyingCache.getWithLoader(key, loader, loaderArgument); }
/** * {@inheritDoc} */ public Element getWithLoader(Object key, CacheLoader loader, Object loaderArgument) throws CacheException { return underlyingCache.getWithLoader(key, loader, loaderArgument); }
/** * {@inheritDoc} */ public Element getWithLoader(Object arg0, CacheLoader arg1, Object arg2) throws CacheException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getWithLoader(arg0, arg1, arg2); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public Element getWithLoader(Object arg0, CacheLoader arg1, Object arg2) throws CacheException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getWithLoader(arg0, arg1, arg2); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public Element getWithLoader(Object arg0, CacheLoader arg1, Object arg2) throws CacheException { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getWithLoader(arg0, arg1, arg2); } finally { t.setContextClassLoader(prev); } }
public Element getWithLoader(Object key, CacheLoader loader, Object loaderArgument) throws CacheException { return self().getWithLoader(key, loader, loaderArgument); }
public Element getWithLoader(Object key, CacheLoader loader, Object loaderArgument) throws CacheException { return self().getWithLoader(key, loader, loaderArgument); }
@SuppressWarnings("unchecked") @Nonnull @Override public V get(@Nonnull final K key, @Nonnull final com.atlassian.cache.Supplier<? extends V> valueSupplier) { try { Element element = unwrap(delegate.getWithLoader(wrap(key), getCacheLoader(valueSupplier), null)); return (V) element.getObjectValue(); } catch (net.sf.ehcache.CacheException e) { throw new CacheException(e.getCause()); } catch (Exception e) { throw new CacheException(e); } }
final Element element = cache.getWithLoader(cacheKey, null, methodInvocation); if (element != null) { final Object value = element.getObjectValue();