View Javadoc

1   /**
2    * Created by IntelliJ IDEA.
3    * User: ROSS
4    * Date: 15/03/2004
5    * Time: 11:47:04
6    * To change this template use File | Settings | File Templates.
7    */
8   package com.atlassian.config;
9   
10  import java.util.Map;
11  
12  public interface ApplicationConfiguration
13  {
14      public void setApplicationHome(String home) throws ConfigurationException;
15  
16      public String getApplicationHome();
17  
18      public boolean isApplicationHomeValid();
19  
20      public void setProperty(Object key, Object value);
21  
22      public void setProperty(Object key, int value);
23  
24      public void setProperty(Object key, boolean value);
25  
26      public Object getProperty(Object key);
27  
28      public boolean getBooleanProperty(Object key);
29  
30      public int getIntegerProperty(Object key);
31  
32      public Object removeProperty(Object key);
33  
34      public Map getProperties();
35  
36      public void setBuildNumber(String build);
37  
38      public String getBuildNumber();
39  
40      public int getMajorVersion();
41  
42      public void setMajorVersion(int majorVersion);
43  
44      public int getMinorVersion();
45  
46      public void setMinorVersion(int minorVersion);
47  
48      public String getApplicationVersion();
49  
50      Map getPropertiesWithPrefix(String prefix);
51  
52      public boolean isSetupComplete();
53  
54      public void setSetupComplete(boolean setupComplete);
55  
56      public void setConfigurationPersister(ConfigurationPersister config);
57  
58      public void save() throws ConfigurationException;
59  
60      public void reset();
61  
62      String getSetupType();
63  
64      void setSetupType(String setupType);
65  
66      String getCurrentSetupStep();
67  
68      void setCurrentSetupStep(String currentSetupStep);
69  
70      void load() throws ConfigurationException;
71  
72      boolean configFileExists();
73  
74      void setConfigurationFileName(String configurationFileName);
75  }