test_class.file: stagemonitor-configuration/src/test/java/org/stagemonitor/configuration/source/PropertyFileConfigurationSourceTest.java
test_class.identifier: PropertyFileConfigurationSourceTest
test_case.body: @Test(expected = IOException.class)
  	public void testSaveToJar() throws Exception {
  		PropertyFileConfigurationSource source = new PropertyFileConfigurationSource("META-INF/maven/org.slf4j/slf4j-api/pom.properties");
  		source.save("foo", "bar");
  	}
test_case.class_method_signature: PropertyFileConfigurationSourceTest.testSaveToJar()
test_case.full_signature: @Test(expected = IOException.class) public void testSaveToJar()
test_case.identifier: testSaveToJar
test_case.invocations: save
test_case.modifiers: @Test(expected = IOException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSaveToJar()
focal_class.declarator: logger = LoggerFactory.getLogger(PropertyFileConfigurationSource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(PropertyFileConfigurationSource.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: location
focal_class.modifier: private final
focal_class.original_string: private final String location;
focal_class.type: String
focal_class.var_name: location
focal_class.declarator: properties
focal_class.modifier: private
focal_class.original_string: private Properties properties;
focal_class.type: Properties
focal_class.var_name: properties
focal_class.declarator: file
focal_class.modifier: private
focal_class.original_string: private File file;
focal_class.type: File
focal_class.var_name: file
focal_class.declarator: writeable
focal_class.modifier: private
focal_class.original_string: private boolean writeable;
focal_class.type: boolean
focal_class.var_name: writeable
focal_class.file: stagemonitor-configuration/src/main/java/org/stagemonitor/configuration/source/PropertyFileConfigurationSource.java
focal_class.identifier: PropertyFileConfigurationSource
focal_class.class_method_signature: PropertyFileConfigurationSource.PropertyFileConfigurationSource(String location)
focal_class.full_signature: public  PropertyFileConfigurationSource(String location)
focal_class.identifier: PropertyFileConfigurationSource
focal_class.modifiers: public
focal_class.parameters: (String location)
focal_class.signature:  PropertyFileConfigurationSource(String location)
focal_class.class_method_signature: PropertyFileConfigurationSource.reload()
focal_class.full_signature: @Override public void reload()
focal_class.identifier: reload
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reload()
focal_class.class_method_signature: PropertyFileConfigurationSource.isSavingPersistent()
focal_class.full_signature: @Override public boolean isSavingPersistent()
focal_class.identifier: isSavingPersistent
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSavingPersistent()
focal_class.class_method_signature: PropertyFileConfigurationSource.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: PropertyFileConfigurationSource.isPresent(String location)
focal_class.full_signature: public static boolean isPresent(String location)
focal_class.identifier: isPresent
focal_class.modifiers: public static
focal_class.parameters: (String location)
focal_class.return: boolean
focal_class.signature: boolean isPresent(String location)
focal_class.class_method_signature: PropertyFileConfigurationSource.getProperties(String location)
focal_class.full_signature: private static Properties getProperties(String location)
focal_class.identifier: getProperties
focal_class.modifiers: private static
focal_class.parameters: (String location)
focal_class.return: Properties
focal_class.signature: Properties getProperties(String location)
focal_class.class_method_signature: PropertyFileConfigurationSource.getFromClasspath(String classpathLocation, ClassLoader classLoader)
focal_class.full_signature: public static Properties getFromClasspath(String classpathLocation, ClassLoader classLoader)
focal_class.identifier: getFromClasspath
focal_class.modifiers: public static
focal_class.parameters: (String classpathLocation, ClassLoader classLoader)
focal_class.return: Properties
focal_class.signature: Properties getFromClasspath(String classpathLocation, ClassLoader classLoader)
focal_class.class_method_signature: PropertyFileConfigurationSource.getFromFileSystem(String location)
focal_class.full_signature: private static Properties getFromFileSystem(String location)
focal_class.identifier: getFromFileSystem
focal_class.modifiers: private static
focal_class.parameters: (String location)
focal_class.return: Properties
focal_class.signature: Properties getFromFileSystem(String location)
focal_class.class_method_signature: PropertyFileConfigurationSource.getValue(String key)
focal_class.full_signature: @Override public String getValue(String key)
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getValue(String key)
focal_class.class_method_signature: PropertyFileConfigurationSource.isSavingPossible()
focal_class.full_signature: @Override public boolean isSavingPossible()
focal_class.identifier: isSavingPossible
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSavingPossible()
focal_class.class_method_signature: PropertyFileConfigurationSource.save(String key, String value)
focal_class.full_signature: @Override public void save(String key, String value)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (String key, String value)
focal_class.return: void
focal_class.signature: void save(String key, String value)
focal_class.superclass: extends AbstractConfigurationSource
focal_method.body: @Override
  	public void save(String key, String value) throws IOException {
  		if (file != null) {
  			synchronized (this) {
  				properties.put(key, value);
  				final FileOutputStream out = new FileOutputStream(file);
  				properties.store(out, null);
  				out.flush();
  				out.close();
  			}
  		} else {
  			throw new IOException(location + " is not writeable");
  		}
  	}
focal_method.class_method_signature: PropertyFileConfigurationSource.save(String key, String value)
focal_method.full_signature: @Override public void save(String key, String value)
focal_method.identifier: save
focal_method.invocations: put store flush close
focal_method.modifiers: @Override public
focal_method.parameters: (String key, String value)
focal_method.return: void
focal_method.signature: void save(String key, String value)