[Registry-dev] svn commit r9392 -
trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet
svn at wso2.org
svn at wso2.org
Thu Nov 1 18:23:33 PDT 2007
Author: deepal
Date: Thu Nov 1 18:23:32 2007
New Revision: 9392
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java
Log:
do not need to have class level variable for Registry in the RegistryServlet
Modified: trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java
==============================================================================
--- trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java (original)
+++ trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java Thu Nov 1 18:23:32 2007
@@ -51,7 +51,6 @@
* instance of this registry for the whole application. This should be initialized in this
* servlet and put in to the servlet context so that it can be accessed from any where.
*/
- private Registry coreRegistry = null;
private EditProcessor editProcessor;
@@ -61,6 +60,7 @@
public void init(ServletConfig config) throws ServletException {
super.init(config);
Realm registryRealm;
+ Registry coreRegistry = null;
try {
// get the database config of the user manager from servlet init parameters. We can omit
@@ -89,7 +89,7 @@
} else {
registryRealm = RegistryRealm.createDataSourceAwareRegistryRealm();
}
- this.coreRegistry = new JDBCRegistry(registryRealm);
+ coreRegistry = new JDBCRegistry(registryRealm);
this.editProcessor = new EditProcessor();
} catch (RegistryException e) {
e.printStackTrace();
@@ -103,7 +103,7 @@
// the repo for testing , we will remove this once we have working system
String mashupData = config.getInitParameter("mashupInit");
if (mashupData != null && mashupData.equalsIgnoreCase("true")) {
- Utils.populateDummyData(this.coreRegistry);
+ Utils.populateDummyData(coreRegistry);
}
log.info(Messages.getMessage("server.initalized"));
More information about the Registry-dev
mailing list