/** * {@inheritDoc} */ public String getGuid() { return underlyingCache.getGuid(); }
/** * {@inheritDoc} */ public final String getGuid() throws RemoteException { return cache.getGuid(); }
/** * An equals method which follows the contract of {@link Object#equals(Object)} * <p> * An Cache is equal to another one if it implements Ehcache and has the same GUID. * * @param object the reference object with which to compare. * @return <code>true</code> if this object is the same as the obj * argument; <code>false</code> otherwise. * @see #hashCode() * @see java.util.Hashtable */ @Override public boolean equals(Object object) { if (object == null) { return false; } if (!(object instanceof Ehcache)) { return false; } Ehcache other = (Ehcache) object; return guid.equals(other.getGuid()); }
/** * {@inheritDoc} */ public String getGuid() { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getGuid(); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public final String getGuid() throws RemoteException { return cache.getGuid(); }
/** * {@inheritDoc} */ public String getGuid() { return underlyingCache.getGuid(); }
/** * {@inheritDoc} */ public String getGuid() { return underlyingCache.getGuid(); }
/** * The GUID for this cache instance can be used to determine whether two cache instance references are pointing to the same cache. * * @return the globally unique identifier for this cache instance. This is guaranteed to be unique. * @since 1.2 */ public String getGuid() { return cache.getGuid(); }
/** * {@inheritDoc} */ public String getGuid() { return underlyingCache.getGuid(); }
/** * {@inheritDoc} */ public final String getGuid() throws RemoteException { return cache.getGuid(); }
/** * {@inheritDoc} */ public final String getGuid() throws RemoteException { return cache.getGuid(); }
/** * An equals method which follows the contract of {@link Object#equals(Object)} * * @param object the reference object with which to compare. * @return <code>true</code> if this object is the same as the obj argument; <code>false</code> otherwise. Same for a * Cache means, the same GUID * @see #hashCode() * @see java.util.Hashtable */ @Override public boolean equals(Object object) { if (object == null) { return false; } if (!(object instanceof Ehcache)) { return false; } Ehcache other = (Ehcache) object; return guid.equals(other.getGuid()); }
/** * An equals method which follows the contract of * {@link Object#equals(Object)} * * @param object * the reference object with which to compare. * @return <code>true</code> if this object is the same as the obj argument; * <code>false</code> otherwise. Same for a Cache means, the same GUID * @see #hashCode() * @see java.util.Hashtable */ public boolean equals(Object object) { if (object == null) { return false; } if (!(object instanceof Ehcache)) { return false; } Ehcache other = (Ehcache) object; return guid.equals(other.getGuid()); }
/** * {@inheritDoc} */ public String getGuid() { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getGuid(); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public String getGuid() { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getGuid(); } finally { t.setContextClassLoader(prev); } }
/** * {@inheritDoc} */ public String getGuid() { // THIS IS GENERATED CODE -- DO NOT HAND MODIFY! Thread t = Thread.currentThread(); ClassLoader prev = t.getContextClassLoader(); t.setContextClassLoader(this.classLoader); try { return this.cache.getGuid(); } finally { t.setContextClassLoader(prev); } }
public String getGuid() { return self().getGuid(); }
public String getGuid() { return self().getGuid(); }
/** * Returns basic information about the cache. * * @param cache The cache * @param xml The XML Writer * * @throws IOException If an error occurs while writing the XML */ private static void toXML(Ehcache cache, XMLWriter xml) throws IOException { if (cache == null) return; xml.openElement("cache", true); xml.attribute("name", cache.getName()); xml.attribute("guid", cache.getGuid()); xml.closeElement(); }
/** * Returns basic information about the cache. * * @param cache The cache * @param xml The XML Writer * * @throws IOException If an error occurs while writing the XML */ private static void toXML(Ehcache cache, XMLWriter xml) throws IOException { if (cache == null) return; xml.openElement("cache", true); xml.attribute("name", cache.getName()); xml.attribute("guid", cache.getGuid()); xml.openElement("statistics", true); xml.attribute("enabled", "false"); xml.closeElement(); xml.closeElement(); }