Subversion Repositories XServices

Compare Revisions

Regard whitespace Rev 198 → Rev 200

/xservices/trunk/src/main/java/net/brutex/xservices/util/cache/CacheServlet.java
23,19 → 23,19
import java.util.concurrent.ExecutorService;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
 
import lombok.extern.slf4j.Slf4j;
import net.brutex.xservices.types.scm.ObjectFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
 
 
/**
* @author Brian Rosenberger, bru(at)brutex.de
*
*/
 
 
@Slf4j
public class CacheServlet extends HttpServlet
{
private static final Logger logger = LogManager.getLogger();
List<File> configfiles = new ArrayList<File>();
int cacheinterval;
private final ObjectFactory FACTORY = new ObjectFactory();
54,7 → 54,7
if (name.startsWith("cvs-config-")) {
String configfile = getServletContext()
.getInitParameter(name);
this.logger.info("CVS configuration file: " + configfile);
log.info("CVS configuration file: {}", configfile);
this.configfiles.add(new File(configfile));
}
}
63,8 → 63,8
this.cacheinterval = Integer.parseInt(getServletContext()
.getInitParameter("cvs-cache-interval"));
} catch (NumberFormatException e) {
this.logger.debug("Could not read parameter 'cvs-cache-interval' from web.xml. Using default value '" + this.cacheinterval + "' minutes");
log.debug("Could not read parameter 'cvs-cache-interval' from web.xml. Using default value '{}' minutes", this.cacheinterval );
}
this.logger.info("CacheServlet set to " + this.cacheinterval + " minutes interval.");
log.info("CacheServlet set to '{}' minutes interval.", this.cacheinterval);
}
}