View Javadoc

1   package com.atlassian.config;
2   
3   import java.io.InputStream;
4   
5   public interface ConfigurationPersister
6   {
7       void addConfigMapping(Class propertyType, Class configType);
8   
9       void save(String configPath, String configFile) throws ConfigurationException;
10  
11      Object load(String configPath, String configFile) throws ConfigurationException;
12  
13      Object load(InputStream is) throws ConfigurationException;
14  
15      void addConfigElement(Object item, String propertyName) throws ConfigurationException;
16  
17      Object getConfigElement(Class propertyType, String propertyName) throws ConfigurationException;
18  
19      String getStringConfigElement(String propertyName) throws ConfigurationException;
20  
21      void clear();
22  }