Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 78114 invoked from network); 28 Jul 2006 09:50:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 09:50:57 -0000 Received: (qmail 4996 invoked by uid 500); 28 Jul 2006 09:50:56 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 4818 invoked by uid 500); 28 Jul 2006 09:50:55 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 4807 invoked by uid 500); 28 Jul 2006 09:50:55 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 4804 invoked by uid 99); 28 Jul 2006 09:50:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 02:50:55 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 02:50:55 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id ED63C1A981A; Fri, 28 Jul 2006 02:50:34 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r426459 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Service.java Date: Fri, 28 Jul 2006 09:50:34 -0000 To: axis2-cvs@ws.apache.org From: chinthaka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060728095034.ED63C1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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