Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: it/rabellino/toska/ConfigHandler.java


1   package it.rabellino.toska;
2   
3   import java.util.HashMap;
4   
5   import org.apache.avalon.framework.component.Component;
6   
7   /**
8    * This is the main interface to the data model. 
9    * 
10   * @author <a href="gianugo@apache.org">Gianugo Rabellino</a>
11   *
12   */
13  public interface ConfigHandler extends Component {
14  
15    static final String ROLE = "it.rabellino.toska.ConfigHandler";
16    
17    static final String VERSION ="1.0";
18    
19    HashMap getKeys();
20    HashMap getHosts();
21    Host getHost(Host host);
22    void addHost(Host host) throws DuplicateHostException;
23    void addKey(Key key) throws DuplicateKeyException;
24    void removeHost(Host host);
25    void removeKey(String comment);
26    void marshal() throws Exception;
27    void unmarshal();
28    void setChanged(boolean action);    
29    boolean hasChanged();    
30  
31  }