Skip to content

Commit 735d214

Browse files
committed
updated for latest version of ehcache
1 parent 87b1591 commit 735d214

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
<dependencies>
3939
<dependency>
4040
<groupId>net.sf.ehcache</groupId>
41-
<artifactId>ehcache-core</artifactId>
42-
<version>2.4.1</version>
41+
<artifactId>ehcache-ee</artifactId>
42+
<version>2.7.0-SNAPSHOT</version>
4343
</dependency>
4444
<dependency>
4545
<groupId>org.slf4j</groupId>
@@ -56,8 +56,8 @@
5656
</dependencies>
5757
<repositories>
5858
<repository>
59-
<id>terracotta-releases</id>
60-
<url>http://www.terracotta.org/download/reflector/releases</url>
59+
<id>terracotta-snapshots</id>
60+
<url>http://www.terracotta.org/download/reflector/snapshots</url>
6161
</repository>
6262
</repositories>
6363

src/main/java/org/sharrissf/sample/EhcacheSearchPlaying.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import net.sf.ehcache.search.Results;
1717
import net.sf.ehcache.search.aggregator.Aggregators;
1818
import net.sf.ehcache.search.attribute.AttributeExtractor;
19+
import net.sf.ehcache.search.attribute.AttributeExtractorException;
1920

2021
import org.sharrissf.sample.Person.Gender;
2122

@@ -45,7 +46,7 @@ private void initializeCache() {
4546
// .url("localhost:9510");
4647
// cacheManagerConfig.addTerracottaConfig(tcConfig);
4748

48-
CacheConfiguration cacheConfig = new CacheConfiguration("test", -1)
49+
CacheConfiguration cacheConfig = new CacheConfiguration("test", 0)
4950
.eternal(true)
5051
// .terracotta(new TerracottaConfiguration())
5152
;
@@ -199,5 +200,10 @@ public Object attributeFor(Element element) {
199200
return ((Person) element.getValue()).getName();
200201
}
201202

203+
@Override
204+
public Object attributeFor(Element element, String arg1)
205+
throws AttributeExtractorException {
206+
return attributeFor(element);
207+
}
202208
}
203209
}

0 commit comments

Comments
 (0)