KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > rero > client > Feature


1 package rero.client;
2
3 import java.util.*;
4
5 public abstract class Feature
6 {
7    protected Capabilities abilities;
8
9    public void installCapabilities(Capabilities c)
10    {
11        abilities = c;
12    }
13
14    public Capabilities getCapabilities()
15    {
16        return abilities;
17    }
18
19    public void storeDataStructures(WeakHashMap data)
20    {
21        // does nothing by default.
22
}
23
24    public abstract void init();
25
26    /** execute any cleanup that needs to be done so we don't have memory leaks */
27    public void cleanup()
28    {
29    }
30 }
31
Popular Tags