felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1415601 - /felix/trunk/useradmin/filestore/src/main/java/org/apache/felix/useradmin/filestore/RoleRepositoryFileStore.java
Date Fri, 30 Nov 2012 12:36:10 GMT
Author: jawi
Date: Fri Nov 30 12:36:09 2012
New Revision: 1415601

URL: http://svn.apache.org/viewvc?rev=1415601&view=rev
Log:
Use better name for service PID.

Modified:
    felix/trunk/useradmin/filestore/src/main/java/org/apache/felix/useradmin/filestore/RoleRepositoryFileStore.java

Modified: felix/trunk/useradmin/filestore/src/main/java/org/apache/felix/useradmin/filestore/RoleRepositoryFileStore.java
URL: http://svn.apache.org/viewvc/felix/trunk/useradmin/filestore/src/main/java/org/apache/felix/useradmin/filestore/RoleRepositoryFileStore.java?rev=1415601&r1=1415600&r2=1415601&view=diff
==============================================================================
--- felix/trunk/useradmin/filestore/src/main/java/org/apache/felix/useradmin/filestore/RoleRepositoryFileStore.java
(original)
+++ felix/trunk/useradmin/filestore/src/main/java/org/apache/felix/useradmin/filestore/RoleRepositoryFileStore.java
Fri Nov 30 12:36:09 2012
@@ -46,14 +46,15 @@ import org.osgi.service.useradmin.UserAd
 public class RoleRepositoryFileStore extends RoleRepositoryMemoryStore implements Runnable,
UserAdminListener, ManagedService {
 
     /** The PID for this service to allow its configuration to be updated. */
-    public static final String PID = "org.apache.felix.useradmin.rolerepositoryfilestore";
+    public static final String PID = "org.apache.felix.useradmin.filestore";
 
     static final String KEY_WRITE_DISABLED = "background.write.disabled";
     static final String KEY_WRITE_DELAY_VALUE = "background.write.delay.value";
     static final String KEY_WRITE_DELAY_TIMEUNIT = "background.write.delay.timeunit";
 
-    private static final boolean DEFAULT_WRITE_DISABLED = Boolean.parseBoolean(System.getProperty(KEY_WRITE_DISABLED,
"false"));
-    private static final int DEFAULT_WRITE_DELAY_VALUE = Integer.parseInt(System.getProperty(KEY_WRITE_DELAY_VALUE,
"500"));
+    private static final String PREFIX = PID.concat(".");
+    private static final boolean DEFAULT_WRITE_DISABLED = Boolean.parseBoolean(System.getProperty(PREFIX.concat(KEY_WRITE_DISABLED),
"false"));
+    private static final int DEFAULT_WRITE_DELAY_VALUE = Integer.parseInt(System.getProperty(PREFIX.concat(KEY_WRITE_DELAY_VALUE),
"500"));
     private static final TimeUnit DEFAULT_WRITE_DELAY_TIMEUNIT = TimeUnit.MILLISECONDS;
 
     private static final String FILE_NAME = "ua_repo.dat";



Mime
View raw message