axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject svn commit: r356041 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context: AbstractContext.java ConfigurationContext.java MessageContext.java OperationContext.java ServiceContext.java ServiceGroupContext.java
Date Sun, 11 Dec 2005 21:57:52 GMT
Author: sanjiva
Date: Sun Dec 11 13:57:48 2005
New Revision: 356041

URL: http://svn.apache.org/viewcvs?rev=356041&view=rev
Log:
removed unused init() from *Context

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/AbstractContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/OperationContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceGroupContext.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/AbstractContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/AbstractContext.java?rev=356041&r1=356040&r2=356041&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/AbstractContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/AbstractContext.java
Sun Dec 11 13:57:48 2005
@@ -33,8 +33,6 @@
 
     protected AbstractContext parent;
 
-    public abstract void init(AxisConfiguration axisConfiguration) throws AxisFault;
-
     protected AbstractContext(AbstractContext parent) {
         this.properties = new HashMap();
         this.parent = parent;

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java?rev=356041&r1=356040&r2=356041&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
Sun Dec 11 13:57:48 2005
@@ -63,38 +63,6 @@
         serviceContextMap.remove(name);
     }
 
-    /**
-     * Initializes the Configuration Context
-     * @param axisConfiguration
-     * @throws AxisFault
-     */
-    public void init(AxisConfiguration axisConfiguration) throws AxisFault {
-        this.axisConfiguration = axisConfiguration;
-        Iterator operationContextIt = operationContextMap.keySet().iterator();
-        while (operationContextIt.hasNext()) {
-            Object key = operationContextIt.next();
-            OperationContext operationContext = (OperationContext) operationContextMap.get(key);
-            if (operationContext != null)
-                operationContext.init(axisConfiguration);
-        }
-        Iterator serviceContextIt = serviceContextMap.keySet().iterator();
-        while (serviceContextIt.hasNext()) {
-            Object key = serviceContextIt.next();
-            ServiceContext serviceContext = (ServiceContext) serviceContextMap.get(key);
-            if (serviceContext != null)
-                serviceContext.init(axisConfiguration);
-        }
-        Iterator serviceGroupContextIt = serviceGroupContextMap.keySet().iterator();
-        while (serviceGroupContextIt.hasNext()) {
-            Object key = serviceGroupContextIt.next();
-            ServiceGroupContext serviceGroupContext = (ServiceGroupContext) serviceGroupContextMap.get(key);
-            if (serviceGroupContext != null)
-                serviceGroupContext.init(axisConfiguration);
-        }
-    }
-
-    /**
-     */
     public AxisConfiguration getAxisConfiguration() {
         return axisConfiguration;
     }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java?rev=356041&r1=356040&r2=356041&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
Sun Dec 11 13:57:48 2005
@@ -188,24 +188,6 @@
     QName axisOperationName = null;
 
     /**
-     * Initializes Axis Engine Context.
-     *
-     * @throws AxisFault
-     */
-    public void init(AxisConfiguration axisConfiguration) throws AxisFault {
-        if (transportInName != null)
-            transportIn = axisConfiguration.getTransportIn(transportInName);
-        if (transportOutname != null)
-            transportOut = axisConfiguration.getTransportOut(transportOutname);
-        if (serviceGroupId != null)
-            axisServiceGroup = axisConfiguration.getServiceGroup(serviceGroupId);
-        if (serviceDescName != null)
-            axisService = axisConfiguration.getService(serviceDescName.getLocalPart());
-        if (axisOperationName != null)
-            axisOperation = axisService.getOperation(axisOperationName);
-    }
-
-    /**
      * Convenience Constructor. Before calling engine.send() or  engine.receive(), one must
send
      * transport in/out
      *

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/OperationContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/OperationContext.java?rev=356041&r1=356040&r2=356041&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/OperationContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/OperationContext.java
Sun Dec 11 13:57:48 2005
@@ -70,24 +70,6 @@
     private QName serviceDescName = null;
 
     /**
-     * Initializes the engine context.
-     * @throws AxisFault
-     */
-
-    public void init(AxisConfiguration axisConfiguration) throws AxisFault {
-        if (operationDescName!=null && serviceDescName!=null){
-            //todo this lead to NPE : Chamikara
-            axisOperation = axisConfiguration.getService(serviceDescName.getLocalPart()).getOperation(operationDescName);
-        }
-
-        Iterator msgContexts =   messageContexts.values().iterator();
-        while (msgContexts.hasNext()) {
-            MessageContext messageContext = (MessageContext) msgContexts.next();
-            messageContext.init(axisConfiguration);
-        }
-    }
-
-    /**
      * Constructs a new OperationContext.
      *
      * @param axisOperation  the AxisOperation whose running instances' state this

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java?rev=356041&r1=356040&r2=356041&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceContext.java
Sun Dec 11 13:57:48 2005
@@ -36,15 +36,6 @@
     private QName axisServiceName = null;
 
 
-    /**
-     * Initializes the engine context.
-     *
-     * @throws AxisFault
-     */
-    public void init(AxisConfiguration axisConfiguration) throws AxisFault {
-        axisService = axisConfiguration.getService(axisServiceName.getLocalPart());
-    }
-
     public ServiceContext(
             AxisService serviceConfig,
             ServiceGroupContext serviceGroupContext) {

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceGroupContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceGroupContext.java?rev=356041&r1=356040&r2=356041&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceGroupContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ServiceGroupContext.java
Sun Dec 11 13:57:48 2005
@@ -33,11 +33,6 @@
     private String axisServiceGroupName = null;
 
 
-    public void init(AxisConfiguration axisConfiguration) throws AxisFault {
-        if (axisServiceGroupName != null)
-            axisServiceGroup = axisConfiguration.getServiceGroup(axisServiceGroupName);
-    }
-
     public ServiceGroupContext(ConfigurationContext parent, AxisServiceGroup axisServiceGroup)
{
         super(parent);
         this.axisServiceGroup = axisServiceGroup;



Mime
View raw message