Author: saminda
Date: Thu Jan 17 05:11:29 2008
New Revision: 12412

Log:

patching from branch 


Modified:
   
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/util/ServiceArchiveCreator.java

Modified: 
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/util/ServiceArchiveCreator.java
==============================================================================
--- 
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/util/ServiceArchiveCreator.java
      (original)
+++ 
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/util/ServiceArchiveCreator.java
      Thu Jan 17 05:11:29 2008
@@ -413,6 +413,23 @@
                     List axisMessageParameterList = 
axisMessage.getParameters();
                     serializeParameterList(axisMessageParameterList, 
axisMessageEle, fac, ns);
 
+                    PolicyInclude policyInclude = operation.getPolicyInclude();
+                    PolicyRegistry registry = 
policyInclude.getPolicyRegistry();
+                    List policyList =
+                            
policyInclude.getPolicyElements(PolicyInclude.AXIS_MESSAGE_POLICY);
+                    if (!policyList.isEmpty()) {
+                        serializePolicyIncludes(axisMessageEle, policyList, 
registry);
+                    }
+
+
+                }
+
+                PolicyInclude policyInclude = operation.getPolicyInclude();
+                PolicyRegistry registry = policyInclude.getPolicyRegistry();
+                List policyList =
+                        
policyInclude.getPolicyElements(PolicyInclude.AXIS_OPERATION_POLICY);
+                if (!policyList.isEmpty()) {
+                    serializePolicyIncludes(operationEle, policyList, 
registry);
                 }
             }
 
@@ -464,6 +481,15 @@
             }
         }
 
+        PolicyInclude policyInclude = axisService.getPolicyInclude();
+        PolicyRegistry registry = policyInclude.getPolicyRegistry();
+
+        // services.xml
+        List policyList = 
policyInclude.getPolicyElements(PolicyInclude.AXIS_SERVICE_POLICY);
+        if (!policyList.isEmpty()) {
+            serializePolicyIncludes(serviceEle, policyList, registry);
+        }
+
         //TODO - Datalocators
         /*OMElement dataLocatorEle = createOMElement(fac,ns, 
DRConstants.DATA_LOCATOR_ELEMENT);
         serviceEle.addChild(dataLocatorEle);*/

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to