Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbrealey2006-05-10 14:55:12 +0000
committercbrealey2006-05-10 14:55:12 +0000
commit2ca35b42ef112c52ef12b8f4dfe691c608afe502 (patch)
tree029d45a894fcfce494cbcd8a895261b05a6da73b /bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst
parent716c052a0be2a189e64ded7d43137357dfb15fce (diff)
downloadwebtools.webservices-2ca35b42ef112c52ef12b8f4dfe691c608afe502.tar.gz
webtools.webservices-2ca35b42ef112c52ef12b8f4dfe691c608afe502.tar.xz
webtools.webservices-2ca35b42ef112c52ef12b8f4dfe691c608afe502.zip
[132905] JAX-RPC restrictions on Java bottom-up are unclear
Diffstat (limited to 'bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst')
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java21
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java13
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java11
3 files changed, 45 insertions, 0 deletions
diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java b/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java
index 6f39617b0..e5a281e98 100644
--- a/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java
+++ b/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java
@@ -60,6 +60,12 @@ public interface AxisEmitterContext {
* preference from the plugins local preferences store.
*/
public static final String PREFERENCE_USE_INHERITED_METHODS = "useInheritedMethods";
+
+ /**
+ * This constant string is used to lookup the "validate against JAXRPC"
+ * preference from the plugins local preferences store.
+ */
+ public static final String PREFERENCE_VALIDATE_AGAINST_JAXRPC = "validateAgainstJAXRPC";
/**
*
@@ -123,6 +129,21 @@ public interface AxisEmitterContext {
/**
*
+ * @param enable
+ * set whether JAX-RPC analysis of the service class is enabled.
+ */
+ public void setValidateAgainstJAXRPCEnabled(boolean enable);
+
+ /**
+ *
+ * @param returns
+ * whether JAX-RPC analysis of the service class is enabled.
+ */
+
+ public boolean isValidateAgainstJAXRPCEnabled();
+
+ /**
+ *
* @param selection
* set the deploy scope type.
*/
diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java b/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java
index f9ad3c010..19adc6e1b 100644
--- a/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java
+++ b/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java
@@ -19,6 +19,7 @@ public class AxisEmitterDefaults
private static final boolean PREFERENCE_HELPER_WANTED_DEFAULT = false;
private static final boolean PREFERENCE_WRAP_ARRAYS_DEFAULT = false;
private static final boolean PREFERENCE_USE_INHERITED_METHODS_DEFAULT = false;
+ private static final boolean PREFERENCE_VALIDATE_AGAINST_JAXRPC = true;
private static final int DEPLOY_SCOPE_DEFAULT = AxisEmitterContext.DEPLOY_SCOPE_TYPE_REQUEST;
private static final int TIME_OUT_DEFAULT = 45;
@@ -60,6 +61,18 @@ public class AxisEmitterDefaults
/**
*
+ * @return returns the default setting for JAX-RPC validation of the service class.
+ * Note: This is not a true Axis emitter preference. This preference controls whether
+ * the Axis Web service bottom-up scenario analyzes the service class for compliance
+ * to JAX-RPC some time before calling the emitters.
+ */
+ public static boolean getValidateAgainstJAXRPC()
+ {
+ return PREFERENCE_VALIDATE_AGAINST_JAXRPC;
+ }
+
+ /**
+ *
* @return returns the default setting for deploy scope type.
*/
public static int getDeployScopeDefault()
diff --git a/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java b/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java
index 92b76edec..e8543e1fe 100644
--- a/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java
+++ b/bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java
@@ -41,6 +41,7 @@ public class PersistentAxisEmitterContext extends PersistentContext implements A
setDefault(PREFERENCE_HELPER_WANTED, AxisEmitterDefaults.getHelperWantedDefault());
setDefault(PREFERENCE_WRAP_ARRAYS, AxisEmitterDefaults.getWrapArraysDefault());
setDefault(PREFERENCE_USE_INHERITED_METHODS, AxisEmitterDefaults.getUseInheritedMethodsDefault());
+ setDefault(PREFERENCE_VALIDATE_AGAINST_JAXRPC, AxisEmitterDefaults.getValidateAgainstJAXRPC());
setDefault(PREFERENCE_DEPLOY_SCOPE, AxisEmitterDefaults.getDeployScopeDefault());
setDefault(PREFERENCE_TIME_OUT, AxisEmitterDefaults.getTimeOutDefault());
}
@@ -85,6 +86,16 @@ public class PersistentAxisEmitterContext extends PersistentContext implements A
return getValueAsBoolean(PREFERENCE_USE_INHERITED_METHODS);
}
+ public void setValidateAgainstJAXRPCEnabled(boolean enable)
+ {
+ setValue(PREFERENCE_VALIDATE_AGAINST_JAXRPC, enable);
+ }
+
+ public boolean isValidateAgainstJAXRPCEnabled()
+ {
+ return getValueAsBoolean(PREFERENCE_VALIDATE_AGAINST_JAXRPC);
+ }
+
public void selectDeployScopeType(int selection) {
setValue(PREFERENCE_DEPLOY_SCOPE, selection);
}

Back to the top