[teiid-commits] teiid SVN: r993 - in trunk: embedded/src/main/java/com/metamatrix/dqp/embedded/admin and 2 other directories.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Fri May 22 13:22:13 EDT 2009


Author: shawkins
Date: 2009-05-22 13:22:12 -0400 (Fri, 22 May 2009)
New Revision: 993

Modified:
   trunk/client/src/main/java/com/metamatrix/admin/api/embedded/EmbeddedConfigAdmin.java
   trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/admin/DQPConfigAdminImpl.java
   trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/services/EmbeddedConfigurationService.java
   trunk/engine/src/main/java/com/metamatrix/dqp/service/ConfigurationService.java
Log:
TEIID-623 adding a method to notify the embedded config that an extensionmodule has changed.

Modified: trunk/client/src/main/java/com/metamatrix/admin/api/embedded/EmbeddedConfigAdmin.java
===================================================================
--- trunk/client/src/main/java/com/metamatrix/admin/api/embedded/EmbeddedConfigAdmin.java	2009-05-21 20:54:34 UTC (rev 992)
+++ trunk/client/src/main/java/com/metamatrix/admin/api/embedded/EmbeddedConfigAdmin.java	2009-05-22 17:22:12 UTC (rev 993)
@@ -31,9 +31,9 @@
  */
 public interface EmbeddedConfigAdmin extends CoreConfigAdmin {
     /**
-     * Reload the User Defined function. 
+     * Indicates that an extension module has changed 
      * @throws AdminException
      * @since 6.1.0
      */
-    void reloadUDF() throws AdminException;
+    void extensionModuleModified(String name) throws AdminException;
 }

Modified: trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/admin/DQPConfigAdminImpl.java
===================================================================
--- trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/admin/DQPConfigAdminImpl.java	2009-05-21 20:54:34 UTC (rev 992)
+++ trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/admin/DQPConfigAdminImpl.java	2009-05-22 17:22:12 UTC (rev 993)
@@ -42,7 +42,6 @@
 import com.metamatrix.admin.objects.MMAdminObject;
 import com.metamatrix.admin.objects.MMAdminStatus;
 import com.metamatrix.api.exception.MetaMatrixComponentException;
-import com.metamatrix.api.exception.MetaMatrixProcessingException;
 import com.metamatrix.common.application.exception.ApplicationLifecycleException;
 import com.metamatrix.common.config.api.ComponentType;
 import com.metamatrix.common.config.api.ComponentTypeDefn;
@@ -1050,10 +1049,11 @@
 			throw new AdminComponentException(e);
 		}
 	}
-
+	
 	@Override
-	public void reloadUDF() throws AdminException {
+	public void extensionModuleModified(String name) throws AdminException {
 		try {
+			getConfigurationService().clearClassLoaderCache();
 			getConfigurationService().loadUDF();
 		} catch (MetaMatrixComponentException e) {
 			throw new AdminComponentException(e);

Modified: trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/services/EmbeddedConfigurationService.java
===================================================================
--- trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/services/EmbeddedConfigurationService.java	2009-05-21 20:54:34 UTC (rev 992)
+++ trunk/embedded/src/main/java/com/metamatrix/dqp/embedded/services/EmbeddedConfigurationService.java	2009-05-22 17:22:12 UTC (rev 993)
@@ -1496,5 +1496,10 @@
 	public void unregister(ConnectorBindingLifeCycleListener listener) {
 		this.connectorBindingLifeCycleListeners.remove(listener);
 	}    
+	
+	@Override
+	public void clearClassLoaderCache() throws MetaMatrixComponentException {
+		this.classLoaderManager.clearCache();
+	}
 }
 

Modified: trunk/engine/src/main/java/com/metamatrix/dqp/service/ConfigurationService.java
===================================================================
--- trunk/engine/src/main/java/com/metamatrix/dqp/service/ConfigurationService.java	2009-05-21 20:54:34 UTC (rev 992)
+++ trunk/engine/src/main/java/com/metamatrix/dqp/service/ConfigurationService.java	2009-05-22 17:22:12 UTC (rev 993)
@@ -408,7 +408,9 @@
      * Load the UDF function model 
      * @throws MetaMatrixComponentException
      */
-    void loadUDF() throws MetaMatrixComponentException;    
+    void loadUDF() throws MetaMatrixComponentException;
     
+    void clearClassLoaderCache() throws MetaMatrixComponentException;
+    
     boolean isFullyConfiguredVDB(VDBArchive vdb) throws MetaMatrixComponentException;
 }




More information about the teiid-commits mailing list