コード例 #1
0
 @SatAspectOff
 @Cacheable(value = "Test5", key = "#name")
 public String test5(String name) {
   counter5++;
   Log.println("SatService.test5(\"" + name + "\") - counter5 = " + counter5);
   return "test5 [ name = '" + name + "' counter5 = " + counter5 + "]";
 }
コード例 #2
0
 public String clear() {
   Collection<String> cacheNames = cacheManager.getCacheNames();
   for (String cacheName : cacheNames) {
     cacheManager.getCache(cacheName).clear();
   }
   Log.println("SatService.clear");
   return "caches cleared";
 }
コード例 #3
0
  public String endpoint(String name) {
    Log.println("SatService.endpoint(\"" + name + "\")");

    String test1 = test1(name);
    String test2 = test2(name);
    String test3 = test3(name);
    String test4 = test4(name);
    String test5 = test5(name);

    return "endpoint    \n"
        + test1
        + ", \n"
        + test2
        + ", \n"
        + test3
        + ", \n"
        + test4
        + ", \n"
        + test5;
  }
コード例 #4
0
 // @Cacheable(value = "Test4", key = "#name")
 private String test4(String name) {
   counter4++;
   Log.println("SatService.test4(\"" + name + "\") - counter4 = " + counter4);
   return "test4 [ name = '" + name + "' counter4 = " + counter4 + "]";
 }
コード例 #5
0
 @Cacheable(value = "Test3", key = "#name")
 String test3(String name) {
   counter3++;
   Log.println("SatService.test3(\"" + name + "\") - counter3 = " + counter3);
   return "test3 [ name = '" + name + "' counter3 = " + counter3 + "]";
 }
コード例 #6
0
 @Cacheable(value = "Test2", key = "#name")
 protected String test2(String name) {
   counter2++;
   Log.println("SatService.test2(\"" + name + "\") - counter2 = " + counter2);
   return "test2 [ name = '" + name + "' counter2 = " + counter2 + "]";
 }
コード例 #7
0
 @Cacheable(value = "Test1", key = "#name")
 public String test1(String name) {
   counter1++;
   Log.println("SatService.test1(\"" + name + "\") - counter1 = " + counter1);
   return "test1 [ name = '" + name + "' counter1 = " + counter1 + "]";
 }