axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r550567 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Date Mon, 25 Jun 2007 18:10:24 GMT
Author: dims
Date: Mon Jun 25 11:10:21 2007
New Revision: 550567

URL: http://svn.apache.org/viewvc?view=rev&rev=550567
Log:
Part III - Add runtime warning about deprecated class

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?view=diff&rev=550567&r1=550566&r2=550567
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Mon Jun 25 11:10:21 2007
@@ -85,6 +85,10 @@
 
         try {
             handlerClass = Loader.loadClass(loader1, handlername);
+            if(handlerClass.getPackage().getName().equals("org.apache.axis2.engine")){
+                log.warn("Dispatcher " + handlerClass.getName() + " is now deprecated. Please
edit axis2.xml " +
+                        "and replace with the same class in org.apache.axis2.dispatchers
package");
+            }
             handler = (Handler) handlerClass.newInstance();
             handler.init(desc);
             desc.setHandler(handler);



---------------------------------------------------------------------
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