1 |
| package org.jboss.cache.loader.bdbje; |
2 |
| |
3 |
| import org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig; |
4 |
| |
5 |
| import java.util.Properties; |
6 |
| |
7 |
| public class BdbjeCacheLoaderConfig extends IndividualCacheLoaderConfig |
8 |
| { |
9 |
| private static final long serialVersionUID = 4626734068542420865L; |
10 |
| |
11 |
| private String location; |
12 |
| |
13 |
14
| public BdbjeCacheLoaderConfig()
|
14 |
| { |
15 |
14
| setClassName(BdbjeCacheLoader.class.getName());
|
16 |
| } |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| |
22 |
| |
23 |
114
| BdbjeCacheLoaderConfig(IndividualCacheLoaderConfig base)
|
24 |
| { |
25 |
114
| setClassName(BdbjeCacheLoader.class.getName());
|
26 |
114
| populateFromBaseConfig(base);
|
27 |
| } |
28 |
| |
29 |
256
| public String getLocation()
|
30 |
| { |
31 |
256
| return location;
|
32 |
| } |
33 |
| |
34 |
173
| public void setLocation(String location)
|
35 |
| { |
36 |
173
| testImmutability("location");
|
37 |
173
| this.location = location;
|
38 |
| } |
39 |
| |
40 |
114
| public void setProperties(Properties props)
|
41 |
| { |
42 |
114
| super.setProperties(props);
|
43 |
114
| setLocation(props != null ? props.getProperty("location") : null);
|
44 |
| } |
45 |
| |
46 |
0
| public boolean equals(Object obj)
|
47 |
| { |
48 |
0
| if (obj instanceof BdbjeCacheLoaderConfig && equalsExcludingProperties(obj))
|
49 |
| { |
50 |
0
| return safeEquals(location, ((BdbjeCacheLoaderConfig) obj).location);
|
51 |
| } |
52 |
0
| return false;
|
53 |
| } |
54 |
| |
55 |
114
| public int hashCode()
|
56 |
| { |
57 |
114
| return 31 * hashCodeExcludingProperties() + (location == null ? 0 : location.hashCode());
|
58 |
| } |
59 |
| |
60 |
| } |