net.spy.memcached.compat.SpyObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spymemcached Show documentation
Show all versions of spymemcached Show documentation
A client library for memcached.
// Copyright (c) 2002 Dustin Sallings
package net.spy.memcached.compat;
import net.spy.memcached.compat.log.Logger;
import net.spy.memcached.compat.log.LoggerFactory;
/**
* Superclass for all Spy Objects.
*/
public class SpyObject extends Object {
private transient Logger logger=null;
/**
* Get an instance of SpyObject.
*/
public SpyObject() {
super();
}
/**
* Get a Logger instance for this class.
*
* @return an appropriate logger instance.
*/
protected Logger getLogger() {
if(logger==null) {
logger=LoggerFactory.getLogger(getClass());
}
return(logger);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy