View Javadoc

1   /*
2    * Created on May 19, 2005
3    *
4    *  TheLittleContainer PropertyManager Interface
5    */
6   package net.sf.tlc.core;
7   
8   import java.util.Properties;
9   
10  /***
11   * TheLittleContainer PropertyManager Interface
12   * 
13   * @author aisrael
14   */
15  public interface PropertyManager {
16  
17      /***
18       * Return all the properties managed by this property manager.
19       * 
20       * @return Properties
21       */
22      Properties getProperties();
23  
24      /***
25       * Attempt to retrieve a container-level property
26       * 
27       * @param key
28       *            The property key
29       * @return The property value
30       */
31      String getProperty(final String key);
32  
33      /***
34       * Attempt to retrieve a container-level property, returing the given
35       * defaultValue if the key is not found.
36       * 
37       * @param key
38       *            The property key
39       * @param defaultValue
40       *            The value to return if the property is not found
41       * @return The found value
42       */
43      String getProperty(final String key, final String defaultValue);
44  
45  }