KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > swingclient > workflowadmin > cache > actions > ClearResourceCache


1 package org.enhydra.shark.swingclient.workflowadmin.cache.actions;
2
3 import java.awt.event.ActionEvent JavaDoc;
4 import org.enhydra.shark.swingclient.ActionBase;
5 import org.enhydra.shark.swingclient.workflowadmin.SharkAdmin;
6 import org.enhydra.shark.swingclient.workflowadmin.cache.CacheManagement;
7
8 /**
9  * Empties shark's resource cache.
10  *
11  * @author Sasa Bojanic
12  * @version 1.0
13  */

14 public class ClearResourceCache extends ActionBase {
15
16    public ClearResourceCache (CacheManagement cm) {
17       super(cm);
18    }
19
20    public void actionPerformed(ActionEvent JavaDoc e) {
21       try {
22          CacheManagement cm=(CacheManagement)actionPanel;
23          SharkAdmin.getCacheAdmin().clearResourceCache();
24          cm.refresh(true);
25       } catch (Exception JavaDoc ex){
26       }
27    }
28 }
29
Popular Tags