axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r426459 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java
Date Fri, 28 Jul 2006 09:50:34 GMT
Author: chinthaka
Date: Fri Jul 28 02:50:34 2006
New Revision: 426459

URL: http://svn.apache.org/viewvc?rev=426459&view=rev
Log:
Adding init method in to the service interface.

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java?rev=426459&r1=426458&r2=426459&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java Fri Jul 28
02:50:34 2006
@@ -18,6 +18,7 @@
 package org.apache.axis2;
 
 import org.apache.axis2.context.OperationContext;
+import org.apache.axis2.context.ServiceContext;
 
 /**
  * This class *may* be implemented by any service which require some information from Axis2
engine,
@@ -26,8 +27,16 @@
 public interface Service {
 
     /**
+     * this will be called during the initialization of the service. If the service is in
the application scope, then this
+     * method will be called when the system starts up. Else will be called when the first
request comes.
+     * @param sc
+     */
+    public void init(ServiceContext sc);
+
+    /**
      * This will pass the operation context to the service implementation class and will
be called
      * by the in-built Axis2 message receivers.
+     *
      * @param operationContext
      */
     public void setOperationContext(OperationContext operationContext);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message