axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r377992 - in /webservices/axis2/trunk/java/modules: codegen/src/org/apache/axis2/wsdl/codegen/extension/ core/src/org/apache/axis2/modules/
Date Wed, 15 Feb 2006 11:55:34 GMT
Author: ajith
Date: Wed Feb 15 03:55:31 2006
New Revision: 377992

URL: http://svn.apache.org/viewcvs?rev=377992&view=rev
Log:
Moving the module specific interfaces to core,
they really belong to core, not codegen

Added:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/ModulePolicyExtension.java
      - copied, changed from r377984, webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/CodeGenPolicyExtension.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/PolicyExtension.java
      - copied, changed from r377984, webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyExtension.java
Removed:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/CodeGenPolicyExtension.java
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyExtension.java
Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java?rev=377992&r1=377991&r2=377992&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java
Wed Feb 15 03:55:31 2006
@@ -29,6 +29,8 @@
 import org.apache.axis2.description.AxisModule;
 import org.apache.axis2.engine.AxisConfiguration;
 import org.apache.axis2.modules.Module;
+import org.apache.axis2.modules.PolicyExtension;
+import org.apache.axis2.modules.ModulePolicyExtension;
 import org.apache.axis2.util.PolicyAttachmentUtil;
 import org.apache.axis2.wsdl.codegen.CodeGenConfiguration;
 import org.apache.ws.policy.AndCompositeAssertion;
@@ -45,9 +47,9 @@
 import org.w3c.dom.Element;
 
 /**
- * 
+ *
  * @author Sanka Samaranayake (sanka@apache.org)
- * 
+ *
  */
 public class PolicyEvaluator implements CodeGenExtension {
 
@@ -67,13 +69,13 @@
 		util = new PolicyAttachmentUtil(configuration.getWom());
 
 		String repository = configuration.getRepositoryPath();
-		
+
 		if (repository == null) {
 			System.err.println("Warning: repository is not specified");
 			System.err.println("policy will not be supported");
-			return;			
+			return;
 		}
-		
+
 
 		try {
 			ConfigurationContext configurationCtx = ConfigurationContextFactory
@@ -100,8 +102,8 @@
 			System.err
 					.println("cannot create repository : policy will not be supported");
 		}
-		
-		// 
+
+		//
 		configuration.putProperty("policyExtensionTemplate", "/org/apache/axis2/wsdl/template/java/PolicyExtensionTemplate.xsl");
 	}
 
@@ -181,9 +183,9 @@
 			// TODO exception ?
 			return;
 		}
-		
+
 		// TODO wsdl:portType processing..
-		
+
 	}
 
 	private void processPolicies(Document document, Element rootElement,
@@ -230,17 +232,17 @@
 						+ namespace + "type assertions");
 				continue;
 			}
-			
+
 			Module module = axisModule.getModule();
 
-			if (!(module instanceof CodeGenPolicyExtension)) {
+			if (!(module instanceof ModulePolicyExtension)) {
 				System.err
 						.println(axisModule.getName()
 								+ " module doesnt provde a PolicyExtension to process policies");
 				continue;
 			}
 
-			PolicyExtension policyExtension = ((CodeGenPolicyExtension) module)
+			PolicyExtension policyExtension = ((ModulePolicyExtension) module)
 					.getPolicyExtension();
 
 			Policy nPolicy = new Policy();

Copied: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/ModulePolicyExtension.java
(from r377984, webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/CodeGenPolicyExtension.java)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/ModulePolicyExtension.java?p2=webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/ModulePolicyExtension.java&p1=webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/CodeGenPolicyExtension.java&r1=377984&r2=377992&rev=377992&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/CodeGenPolicyExtension.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/ModulePolicyExtension.java
Wed Feb 15 03:55:31 2006
@@ -14,7 +14,8 @@
  * limitations under the License.
  */
 
-package org.apache.axis2.wsdl.codegen.extension;
+package org.apache.axis2.modules;
+
 
 
 /**
@@ -22,8 +23,8 @@
  * @author Sanka Samaranayake (sanka@apache.org)
  *
  */
-public interface CodeGenPolicyExtension {
-	
-	public PolicyExtension getPolicyExtension();
+public interface ModulePolicyExtension {
+
+    public PolicyExtension getPolicyExtension();
 
 }

Copied: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/PolicyExtension.java
(from r377984, webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyExtension.java)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/PolicyExtension.java?p2=webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/PolicyExtension.java&p1=webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyExtension.java&r1=377984&r2=377992&rev=377992&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyExtension.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/PolicyExtension.java
Wed Feb 15 03:55:31 2006
@@ -14,14 +14,14 @@
  * limitations under the License.
  */
 
-package org.apache.axis2.wsdl.codegen.extension;
+package org.apache.axis2.modules;
 
 import org.apache.ws.policy.Policy;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
 /**
- * 
+ *
  * @author Sanka Samaranayake (sanka@apache.org)
  */
 public interface PolicyExtension {



Mime
View raw message