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 de...@apache.org on 2006/02/06 12:49:54 UTC
svn commit: r375259 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/Utils.java
Author: deepal
Date: Mon Feb 6 03:49:52 2006
New Revision: 375259
URL: http://svn.apache.org/viewcvs?rev=375259&view=rev
Log:
small fixing in Utils method , change createService logic a bit
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/Utils.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/Utils.java?rev=375259&r1=375258&r2=375259&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/Utils.java Mon Feb 6 03:49:52 2006
@@ -249,6 +249,8 @@
if (!jmethod.isPublic()) {
// no need to expose , private and protected methods
continue;
+ } else if ("init".equals(jmethod.getSimpleName())) {
+ continue;
}
AxisOperation operation = getAxisOperationforJmethod(jmethod, table);
@@ -263,7 +265,6 @@
throw new AxisFault("InstantiationException occured during message receiver loading"
+ e.getMessage());
}
-
pinfo.setOperationPhases(operation);
axisService.addOperation(operation);
}
@@ -277,8 +278,8 @@
try {
clazz = Class.forName("org.apache.axis2.rpc.receivers.RPCMessageReceiver");
} catch (ClassNotFoundException e) {
- throw new AxisFault("ClassNotFoundException occured during message receiver loading"
- + e.getMessage());
+ throw new AxisFault("ClassNotFoundException occured during message receiver loading"
+ + e.getMessage());
}
return createService(implClass, axisConfig, clazz);
@@ -289,6 +290,9 @@
TypeTable table) throws AxisFault {
AxisOperation operation;
String opName = jmethod.getSimpleName();
+ if ("init".equals(opName)) {
+ return null;
+ }
if (jmethod.getReturnType().isVoidType()) {
operation = AxisOperationFactory.getAxisOperation(WSDLConstants.MEP_CONSTANT_IN_ONLY);
} else {