Author: [email protected]
Date: Tue Jan 31 12:33:00 2012
New Revision: 2037
Log:
AMDATU-529 Removed constants not longer used. Configuration keys must now match
svc keys
Modified:
trunk/amdatu-core/tenant-factory/src/main/java/org/amdatu/tenant/factory/TenantServiceFactory.java
Modified:
trunk/amdatu-core/tenant-factory/src/main/java/org/amdatu/tenant/factory/TenantServiceFactory.java
==============================================================================
---
trunk/amdatu-core/tenant-factory/src/main/java/org/amdatu/tenant/factory/TenantServiceFactory.java
(original)
+++
trunk/amdatu-core/tenant-factory/src/main/java/org/amdatu/tenant/factory/TenantServiceFactory.java
Tue Jan 31 12:33:00 2012
@@ -17,7 +17,6 @@
import java.util.Dictionary;
import java.util.Enumeration;
-import java.util.Iterator;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
@@ -41,10 +40,6 @@
public static final String PID = "org.amdatu.tenant.factory";
- public static final String ID_KEY = "id";
- public static final String NAME_KEY = "name";
- public static final String HOST_KEY = "host";
-
private final ConcurrentHashMap<String, Component> m_components = new
ConcurrentHashMap<String, Component>();
private volatile DependencyManager m_dependencyManager;
@@ -81,12 +76,12 @@
// registeredComponent is newly created Component unless one exists
Component registeredComponent = m_components.putIfAbsent(pid,
component);
if (registeredComponent == null) {
- m_logService.log(LogService.LOG_DEBUG, "Registering tenant service
with pid: '" + properties.get(ID_KEY)
+ m_logService.log(LogService.LOG_DEBUG, "Registering tenant service
with pid: '" + properties.get(TenantConstants.PID_KEY)
+ "'");
m_dependencyManager.add(component);
}
else {
- m_logService.log(LogService.LOG_DEBUG, "Updating tenant service
with pid: '" + properties.get(ID_KEY)
+ m_logService.log(LogService.LOG_DEBUG, "Updating tenant service
with pid: '" + properties.get(TenantConstants.PID_KEY)
+ "'");
registeredComponent.setServiceProperties(serviceProperties);
}
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits