Author: hsaputra
Date: Fri Sep 23 00:34:21 2011
New Revision: 1174464
URL: http://svn.apache.org/viewvc?rev=1174464&view=rev
Log:
Make readPropertyFile to be protected. This should help extending the Property
Module for custom shindig property file.
Modified:
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
Modified:
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
URL:
http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java?rev=1174464&r1=1174463&r2=1174464&view=diff
==============================================================================
---
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
(original)
+++
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
Fri Sep 23 00:34:21 2011
@@ -97,8 +97,7 @@ public class PropertiesModule extends Ab
return properties;
}
-
- private Properties readPropertyFile(String propertyFile) {
+ protected Properties readPropertyFile(String propertyFile) {
Properties properties = new Properties();
InputStream is = null;
String contextRoot = getContextRoot();
@@ -117,10 +116,8 @@ public class PropertiesModule extends Ab
throw new CreationException(Arrays.asList(
new Message("Unable to load properties: " + propertyFile)));
} finally {
- IOUtils.closeQuietly( is );
+ IOUtils.closeQuietly(is);
}
-
return properties;
}
-
}