File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
src/main/java/org/sharrissf/sample Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 38
38
<dependencies >
39
39
<dependency >
40
40
<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 >
43
43
</dependency >
44
44
<dependency >
45
45
<groupId >org.slf4j</groupId >
56
56
</dependencies >
57
57
<repositories >
58
58
<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 >
61
61
</repository >
62
62
</repositories >
63
63
Original file line number Diff line number Diff line change 16
16
import net .sf .ehcache .search .Results ;
17
17
import net .sf .ehcache .search .aggregator .Aggregators ;
18
18
import net .sf .ehcache .search .attribute .AttributeExtractor ;
19
+ import net .sf .ehcache .search .attribute .AttributeExtractorException ;
19
20
20
21
import org .sharrissf .sample .Person .Gender ;
21
22
@@ -45,7 +46,7 @@ private void initializeCache() {
45
46
// .url("localhost:9510");
46
47
// cacheManagerConfig.addTerracottaConfig(tcConfig);
47
48
48
- CacheConfiguration cacheConfig = new CacheConfiguration ("test" , - 1 )
49
+ CacheConfiguration cacheConfig = new CacheConfiguration ("test" , 0 )
49
50
.eternal (true )
50
51
// .terracotta(new TerracottaConfiguration())
51
52
;
@@ -199,5 +200,10 @@ public Object attributeFor(Element element) {
199
200
return ((Person ) element .getValue ()).getName ();
200
201
}
201
202
203
+ @ Override
204
+ public Object attributeFor (Element element , String arg1 )
205
+ throws AttributeExtractorException {
206
+ return attributeFor (element );
207
+ }
202
208
}
203
209
}
You can’t perform that action at this time.
0 commit comments