Error Reading Oscache Properties In
Mailing List Use Advanced Search to search the entire archive. [Opensymphony-oscache] EntryUpdateState locking problem - two non-existent gets in a row » Back to List Archive Chronological | Threaded « Previous Message Next » « Previous Thread Next » From: "Richard Taylor"
Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.
/ oscache / 2.3 2.4.1 2.4 2.3 / com.opensymphony.oscache.base.Config Find Usages Diff http://grepcode.com/file/repo1.maven.org/maven2/opensymphony/oscache/2.3/com/opensymphony/oscache/base/Config.java Raw Download HTML Widget oh o [] Start line: End line: https://github.com/stanislawbartkowski/jspwikiforcloud/blob/master/JSPGoogle/srccache/com/opensymphony/oscache/base/Config.java Snippet Preview Snippet HTML Code Stack Overflow Questions 1/*2*Copyright(c)2002-2003byOpenSymphony3*Allrightsreserved.4*/5packagecom.opensymphony.oscache.base;67importorg.apache.commons.logging.Log;8importorg.apache.commons.logging.LogFactory;910importjava.io.InputStream;1112importjava.util.Properties; Responsible for holding the Cache configuration properties. error reading If the default constructor is used, this class will load the properties from the cache.configuration. Author(s):Fabian Crabus Version:$Revision: 1.1 $2122publicclassConfigimplementsjava.io.Serializable{23privatestaticfinaltransientLoglog=LogFactory.getLog(Config.class); Name of the properties file. 2728privatefinalstaticStringPROPERTIES_FILENAME="/oscache.properties"; Properties map to hold the cache configuration. 3233privatePropertiesproperties=null; Create an error reading oscache OSCache Config that loads properties from oscache.properties. The file must be present in the root of OSCache's classpath. If the file cannot be loaded, an error will be logged and the configuration will remain empty. 4041publicConfig(){42this(null);43} Create an OSCache configuration with the specified properties. Note that it is the responsibility of the caller to provide valid properties as no error checking is done to ensure that required keys are present. If you're unsure of what keys should be present, have a look at a sample oscache.properties file. Parameters:p The properties to use for this configuration. If null, then the default properties are loaded from the oscache.properties file.5556publicConfig(Propertiesp){57if(log.isDebugEnabled()){58log.debug("Config()called");59}60
Sign in Pricing Blog Support Search GitHub This repository Watch 0 Star 0 Fork 1 stanislawbartkowski/jspwikiforcloud Code Issues 7 Pull requests 0 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags master Nothing to show Nothing to show Find file Copy path jspwikiforcloud/JSPGoogle/srccache/com/opensymphony/oscache/base/Config.java Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 190 lines (162 sloc) 5.85 KB /* * Copyright (c) 2002-2007 by OpenSymphony * All rights reserved. */ package com.opensymphony.oscache.base; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Properties; /** * Responsible for holding the Cache configuration properties. If the default * constructor is used, this class will load the properties from the * cache.configuration
. * * @author Fabian Crabus * @version $Revision: 412 $ */ public class Config implements java.io.Serializable { private static final transient Log log = LogFactory.getLog(Config.class); /** * Name of the properties file. */ private final static String PROPERTIES_FILENAME = "/oscache.properties"; /** * Properties map to hold the cache configuration. */ private Properties properties = null; /** * Create an OSCache Config that loads properties from oscache.properties. * The file must be present in the root of OSCache's classpath. If the file * cannot be loaded, an error will be logged and the configuration will * remain empty. */ public Config() { this(null); } /** * Create an OSCache configuration with the specified properties. * Note that it is the responsibility of the caller to provide valid * properties as no error checking is done to ensure that required * keys are present. If you're unsure of what keys should be present, * have a look at a sample oscache.properties file. * * @param p The properties to