~ubuntu-branches/ubuntu/trusty/ehcache/trusty

« back to all changes in this revision

Viewing changes to net/sf/ehcache/hibernate/EhCacheProvider.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2008-07-14 02:08:53 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080714020853-37uz6uzh6mc5mcgx
Tags: 1.5.0-1
* New upstream release
* Add libjgroups-java to Build-Depends-Indep
* Bump Standards-Version to 3.8.0
* debian/copyright: remove the full text of Apache 2.0 license, as now
  is included in common licenses

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 *
51
51
 * @author Greg Luck
52
52
 * @author Emmanuel Bernard
53
 
 * @version $Id: EhCacheProvider.java 519 2007-07-27 07:11:45Z gregluck $
 
53
 * @version $Id: EhCacheProvider.java 699 2008-07-10 07:32:00Z gregluck $
54
54
 */
55
55
public final class EhCacheProvider implements CacheProvider {
56
56
 
126
126
            if (configurationResourceName == null || configurationResourceName.length() == 0) {
127
127
                manager = new CacheManager();
128
128
            } else {
129
 
                if (!configurationResourceName.startsWith("/")) {
130
 
                    configurationResourceName = "/" + configurationResourceName;
131
 
                    if (LOG.isDebugEnabled()) {
132
 
                        LOG.debug("prepending / to " + configurationResourceName + ". It should be placed in the root"
133
 
                                + "of the classpath rather than in a package.");
134
 
                    }
135
 
                }
136
129
                URL url = loadResource(configurationResourceName);
137
130
                manager = new CacheManager(url);
138
131
            }