KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.corbaclient.workflowadmin.cache.actions;
2
3 import java.awt.event.ActionEvent JavaDoc;
4 import org.enhydra.shark.corbaclient.ActionBase;
5 import org.enhydra.shark.corbaclient.workflowadmin.SharkAdmin;
6 import org.enhydra.shark.corbaclient.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