axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r370388 - in /webservices/axis2/trunk/java/modules: codegen/src/org/apache/axis2/rpc/receivers/ core/src/org/apache/axis2/context/ core/src/org/apache/axis2/deployment/ core/src/org/apache/axis2/modules/ core/test/org/apache/axis2/ samples/...
Date Thu, 19 Jan 2006 05:46:28 GMT
Author: deepal
Date: Wed Jan 18 21:46:11 2006
New Revision: 370388

URL: http://svn.apache.org/viewcvs?rev=370388&view=rev
Log:
- change Module interface to notify the module when some one engage that modules
  -engaeNotify
- and change the init method to take Configurationcontext and ModuleDescription as argument

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/receivers/RPCMessageReceiver.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContextFactory.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/Module.java
    webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/receivers/RPCMessageReceiver.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/receivers/RPCMessageReceiver.java?rev=370388&r1=370387&r2=370388&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/receivers/RPCMessageReceiver.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/receivers/RPCMessageReceiver.java
Wed Jan 18 21:46:11 2006
@@ -115,7 +115,6 @@
             outMessage.setEnvelope(envelope);
 
         } catch (Exception e) {
-            e.printStackTrace();
             throw AxisFault.makeFault(e);
         }
     }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContextFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContextFactory.java?rev=370388&r1=370387&r2=370388&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContextFactory.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContextFactory.java
Wed Jan 18 21:46:11 2006
@@ -87,7 +87,7 @@
                 Module module = axismodule.getModule();
 
                 if (module != null) {
-                    module.init(context.getAxisConfiguration());
+                    module.init(context, axismodule);
                 }
             }
         } catch (AxisFault e) {

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java?rev=370388&r1=370387&r2=370388&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
Wed Jan 18 21:46:11 2006
@@ -292,7 +292,8 @@
             Module module = axismodule.getModule();
 
             if (module != null) {
-                module.init(axisConfig);
+                //TODO : Need to fix this , I just comment this to remove compile errors
+//                module.init(axisConfig, null);
             }
 
         } catch (AxisFault axisFault) {

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/Module.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/Module.java?rev=370388&r1=370387&r2=370388&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/Module.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/Module.java Wed
Jan 18 21:46:11 2006
@@ -18,6 +18,9 @@
 package org.apache.axis2.modules;
 
 import org.apache.axis2.AxisFault;
+import org.apache.axis2.description.ModuleDescription;
+import org.apache.axis2.description.AxisDescription;
+import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.engine.AxisConfiguration;
 
 /**
@@ -37,8 +40,16 @@
 public interface Module {
 
     // initialize the module
-    public void init(AxisConfiguration axisSystem) throws AxisFault;
+    public void init(ConfigurationContext configContext, ModuleDescription module) throws
AxisFault;
 
+    /**
+     * When engaging this module to some service or operation , module will be notify by
calling this
+     * method there module autor can validate , add policy and do any thing that he want
, and he can
+     * refuce the engage as well
+     * @param axisDescription
+     * @throws AxisFault
+     */
+    void engageNotify(AxisDescription axisDescription) throws AxisFault;
     // shutdown the module
     public void shutdown(AxisConfiguration axisSystem) throws AxisFault;
 }

Modified: webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java?rev=370388&r1=370387&r2=370388&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/core/test/org/apache/axis2/InavalidModuleImpl.java
Wed Jan 18 21:46:11 2006
@@ -2,6 +2,9 @@
 
 import org.apache.axis2.engine.AxisConfiguration;
 import org.apache.axis2.modules.Module;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.description.ModuleDescription;
+import org.apache.axis2.description.AxisDescription;
 /*
 * Copyright 2004,2005 The Apache Software Foundation.
 *
@@ -21,7 +24,10 @@
 
 public class InavalidModuleImpl implements Module {
     // initialize the module
-    public void init(AxisConfiguration axisSystem) throws AxisFault {
+    public void init(ConfigurationContext configContext, ModuleDescription module) throws
AxisFault {
+    }
+
+    public void engageNotify(AxisDescription axisDescription) throws AxisFault {
     }
 
     // shutdown the module

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java?rev=370388&r1=370387&r2=370388&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/loggingmodule/LoggingModule.java
Wed Jan 18 21:46:11 2006
@@ -18,6 +18,9 @@
 package userguide.loggingmodule;
 
 import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.description.AxisDescription;
+import org.apache.axis2.description.ModuleDescription;
 import org.apache.axis2.engine.AxisConfiguration;
 import org.apache.axis2.modules.Module;
 
@@ -25,7 +28,10 @@
 
 
     // initialize the module
-    public void init(AxisConfiguration axisSystem) throws AxisFault {
+    public void init(ConfigurationContext configContext, ModuleDescription module) throws
AxisFault {
+    }
+
+    public void engageNotify(AxisDescription axisDescription) throws AxisFault {
     }
 
     // shutdown the module



Mime
View raw message