/** * {@inheritDoc} */ @Override public RuntimeException getCause() { return (RuntimeException)super.getCause(); } }
new Class[] {TerracottaClientConfiguration.class, ClassLoader.class}, new Object[] {terracottaConfig, loader}); } catch (CacheException ce) { if (ce.getCause() instanceof NoClassDefFoundError) { throw new CacheException("Could not create ClusteredInstanceFactory due to missing class." + " Please verify that terracotta-toolkit is in your classpath.", ce.getCause().getCause()); } else { throw ce;
/** * {@inheritDoc} */ @Override public RuntimeException getCause() { return (RuntimeException)super.getCause(); } }
/** * {@inheritDoc} */ @Override public RuntimeException getCause() { return (RuntimeException)super.getCause(); } }
/** * {@inheritDoc} */ @Override public RuntimeException getCause() { return (RuntimeException)super.getCause(); } }
@SuppressWarnings("unchecked") @Nullable @Override public V get(@Nonnull final K key) { try { Element element = unwrap(delegate.get(wrap(key))); return element == null ? null : (V) element.getObjectValue(); } catch (net.sf.ehcache.CacheException e) { throw new CacheException(e.getCause()); } catch (Exception e) { throw new CacheException(e); } }
@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); } }
@Nonnull @SuppressWarnings("unchecked") @Override public V get() { try { return (V) unwrap(delegate.get(wrap(ReferenceKey.KEY))).getObjectValue(); } catch (net.sf.ehcache.CacheException e) { throw new CacheException(e.getCause()); } catch (Exception e) { throw new CacheException(e); } }
new Class[] {TerracottaClientConfiguration.class, ClassLoader.class}, new Object[] {terracottaConfig, loader}); } catch (CacheException ce) { if (ce.getCause() instanceof NoClassDefFoundError) { throw new CacheException("Could not create ClusteredInstanceFactory due to missing class." + " Please verify that terracotta-toolkit is in your classpath.", ce.getCause().getCause()); } else { throw ce;
new Class[] {TerracottaClientConfiguration.class, ClassLoader.class}, new Object[] {terracottaConfig, loader}); } catch (CacheException ce) { if (ce.getCause() instanceof NoClassDefFoundError) { throw new CacheException("Could not create ClusteredInstanceFactory due to missing class." + " Please verify that terracotta-toolkit is in your classpath.", ce.getCause().getCause()); } else { throw ce;
new Class[] {TerracottaClientConfiguration.class }, new Object[] {terracottaConfig }); } catch (CacheException ce) { if (ce.getCause() instanceof NoClassDefFoundError) { throw new CacheException("Could not create ClusteredInstanceFactory due to missing class." + " Please verify that terracotta-toolkit is in your classpath.", ce.getCause().getCause()); } else { throw ce;