You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ga...@apache.org on 2008/10/29 20:28:43 UTC

svn commit: r708984 - in /webservices/axis2/trunk/java: ./ modules/jaxws-mar/ modules/jaxws-mar/src/ modules/jaxws-mar/src/META-INF/ modules/jaxws-mar/src/org/ modules/jaxws-mar/src/org/apache/ modules/jaxws-mar/src/org/apache/axis2/ modules/jaxws-mar/...

Author: gawor
Date: Wed Oct 29 12:28:42 2008
New Revision: 708984

URL: http://svn.apache.org/viewvc?rev=708984&view=rev
Log:
self engaging module for jaxws to install all the handlers

Added:
    webservices/axis2/trunk/java/modules/jaxws-mar/
    webservices/axis2/trunk/java/modules/jaxws-mar/pom.xml   (with props)
    webservices/axis2/trunk/java/modules/jaxws-mar/src/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/module.xml   (with props)
    webservices/axis2/trunk/java/modules/jaxws-mar/src/org/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/
    webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/JAXWSModule.java   (with props)
Modified:
    webservices/axis2/trunk/java/modules/webapp/pom.xml
    webservices/axis2/trunk/java/pom.xml

Added: webservices/axis2/trunk/java/modules/jaxws-mar/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-mar/pom.xml?rev=708984&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-mar/pom.xml (added)
+++ webservices/axis2/trunk/java/modules/jaxws-mar/pom.xml Wed Oct 29 12:28:42 2008
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.axis2</groupId>
+        <artifactId>axis2-parent</artifactId>
+        <version>SNAPSHOT</version>
+        <relativePath>../parent/pom.xml</relativePath>
+    </parent>
+    <artifactId>axis2-jaxws-mar</artifactId>
+    <packaging>mar</packaging>
+    <name>Apache Axis2 - JAXWS (mar)</name>
+    <description>Axis2 JAXWS Implementation</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-jaxws</artifactId>
+            <version>${version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <sourceDirectory>src</sourceDirectory>
+        <testSourceDirectory>test</testSourceDirectory>
+
+        <resources>
+            <resource>
+                <directory>conf</directory>
+                <excludes>
+                    <exclude>**/*.properties</exclude>
+                </excludes>
+                <filtering>false</filtering>
+            </resource>
+            <resource>
+                <directory>src</directory>
+                <excludes>
+                    <exclude>**/*.java</exclude>
+                </excludes>
+            </resource>
+        </resources>
+
+        <testResources>
+            <testResource>
+                <targetPath>../test-resources</targetPath>
+                <directory>test-resources</directory>
+                <includes>
+                    <include>**/**</include>
+                </includes>
+            </testResource>
+        </testResources>
+
+        <plugins>
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <inherited>true</inherited>
+                <configuration>
+                    <skip>false</skip>
+                    <excludes>
+                        <exclude>**/*Util.java</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.axis2</groupId>
+                <artifactId>axis2-mar-maven-plugin</artifactId>
+                <version>${version}</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <includeDependencies>false</includeDependencies>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: webservices/axis2/trunk/java/modules/jaxws-mar/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/module.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/module.xml?rev=708984&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/module.xml (added)
+++ webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/module.xml Wed Oct 29 12:28:42 2008
@@ -0,0 +1,63 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<module name="jaxws" class="org.apache.axis2.jaxws.module.JAXWSModule">
+    <Description>This is Axis2 implementation of JAX-WS</Description>
+
+    <InFlow>
+            <handler name="GenericProviderDispatcher"
+                     class="org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="MustUnderstandValidationDispatcher"
+                     class="org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="MustUnderstandChecker"
+                     class="org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker">
+                <order phase="OperationInPhase"/>
+            </handler>
+    </InFlow>
+
+    <OutFlow>
+            <handler name="DispatchOperationHandler"
+                     class="org.apache.axis2.jaxws.client.dispatch.DispatchOperationHandler">
+                <order phase="OperationOutPhase"/>
+            </handler>
+    </OutFlow>
+
+    <InFaultFlow>
+            <handler name="GenericProviderDispatcher"
+                     class="org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="MustUnderstandValidationDispatcher"
+                     class="org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="MustUnderstandChecker"
+                     class="org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker">
+                <order phase="OperationInFaultPhase"/>
+            </handler>
+    </InFaultFlow>
+
+</module>

Propchange: webservices/axis2/trunk/java/modules/jaxws-mar/src/META-INF/module.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/JAXWSModule.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/JAXWSModule.java?rev=708984&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/JAXWSModule.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/JAXWSModule.java Wed Oct 29 12:28:42 2008
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.module;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.description.AxisDescription;
+import org.apache.axis2.description.AxisModule;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.modules.Module;
+import org.apache.neethi.Assertion;
+import org.apache.neethi.Policy;
+
+public class JAXWSModule implements Module {
+
+    public void engageNotify(AxisDescription axisDescription) throws AxisFault {
+    }
+
+    public void init(ConfigurationContext configurationContext, AxisModule module) throws AxisFault {
+        AxisConfiguration axisConfiguration = configurationContext.getAxisConfiguration();
+        registerGlobalModule(axisConfiguration, "jaxws");
+    }
+
+    public void shutdown(ConfigurationContext configurationContext) throws AxisFault {
+    }
+
+    public void applyPolicy(Policy policy, AxisDescription axisDescription)  throws AxisFault {
+    }
+
+    public boolean canSupportAssertion(Assertion assertion) {
+        return false;
+    }
+
+    private void registerGlobalModule(AxisConfiguration axisConfiguration, String moduleName) {
+        if (!axisConfiguration.getGlobalModules().contains(moduleName)) {
+            axisConfiguration.addGlobalModuleRef(moduleName);
+        }
+    }
+    
+}

Propchange: webservices/axis2/trunk/java/modules/jaxws-mar/src/org/apache/axis2/jaxws/module/JAXWSModule.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/webapp/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/webapp/pom.xml?rev=708984&r1=708983&r2=708984&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/pom.xml (original)
+++ webservices/axis2/trunk/java/modules/webapp/pom.xml Wed Oct 29 12:28:42 2008
@@ -1340,6 +1340,12 @@
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpcore</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-jaxws-mar</artifactId>
+            <version>${version}</version>
+            <type>mar</type>
+        </dependency>
     </dependencies>
     <build>
         <finalName>axis2-${version}</finalName>
@@ -1363,6 +1369,13 @@
                             </includes>
                         </resource>
                         <resource>
+                            <directory>${basedir}/../jaxws-mar/target</directory>
+                            <targetPath>WEB-INF/modules</targetPath>
+                            <includes>
+                                <include>axis2-jaxws-mar*.mar</include>
+                            </includes>
+                        </resource>
+                        <resource>
                             <directory>${basedir}/../soapmonitor/target</directory>
                             <targetPath>WEB-INF/modules</targetPath>
                             <includes>

Modified: webservices/axis2/trunk/java/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/pom.xml?rev=708984&r1=708983&r2=708984&view=diff
==============================================================================
--- webservices/axis2/trunk/java/pom.xml (original)
+++ webservices/axis2/trunk/java/pom.xml Wed Oct 29 12:28:42 2008
@@ -67,6 +67,7 @@
         <module>modules/metadata</module>
         <module>modules/saaj</module>
         <module>modules/jaxws</module>
+        <module>modules/jaxws-mar</module>
         <module>modules/jaxws-integration</module>
         <module>modules/clustering</module>
         <module>modules/corba</module>