User: pathoss
Date: 02/05/12 08:21:14
Modified: modules/apache/src/xdoclet/modules/apache/soap/ejb Tag:
MODULE_REFACTORING_BRANCH ApacheSoapSubTask.java
Log:
Refactored. Now all the modules compile.
Revision Changes Path
No revision
No revision
1.1.2.6 +216 -245
xdoclet/modules/apache/src/xdoclet/modules/apache/soap/ejb/Attic/ApacheSoapSubTask.java
Index: ApacheSoapSubTask.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/soap/ejb/Attic/ApacheSoapSubTask.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -w -r1.1.2.5 -r1.1.2.6
--- ApacheSoapSubTask.java 9 May 2002 16:37:58 -0000 1.1.2.5
+++ ApacheSoapSubTask.java 12 May 2002 15:21:14 -0000 1.1.2.6
@@ -4,6 +4,8 @@
*/
package xdoclet.modules.apache.soap.ejb;
+import java.io.File;
+
import org.apache.tools.ant.types.Path;
import xdoclet.XDocletException;
@@ -11,69 +13,39 @@
import xdoclet.util.Translator;
-import java.io.File;
-
/**
- *
- * @xdoclet:subtask name="apachesoap" parent="xdoclet.modules.ejb.EjbDocletTask"
- *
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created Oct 15, 2001
- * @version $Revision: 1.1.2.5 $
+ * @xdoclet:subtask name="apachesoap" parent="xdoclet.modules.ejb.EjbDocletTask"
+ * @version $Revision: 1.1.2.6 $
*/
-public class ApacheSoapSubTask extends XmlSubTask {
+public class ApacheSoapSubTask extends XmlSubTask
+{
- /**
- * @todo-javadoc Describe the field
- */
+ public final static String SUBTASK_NAME = "apacheSoap";
+
+ private final static String SOAP_SCHEMA =
"http://xml.apache.org/xml-soap/deployment";
+
+ private static String DEFAULT_TEMPLATE_FILE = "resources/apache-soap.xdt";
+
+ private static String GENERATED_FILE_NAME = "soap-dds-{0}.xml";
protected String statelessSessionEjbProvider =
"org.apache.soap.providers.StatelessEJBProvider";
- /**
- * @todo-javadoc Describe the field
- */
+
protected String statefulSessionEjbProvider =
"org.apache.soap.providers.StatefulEJBProvider";
- /**
- * @todo-javadoc Describe the field
- */
+
protected String entityEjbProvider =
"org.apache.soap.providers.EntityEJBProvider";
- /**
- * @todo-javadoc Describe the field
- */
protected Path providerClasspath;
- /**
- * @todo-javadoc Describe the field
- */
protected String contextProviderUrl = "";
- /**
- * @todo-javadoc Describe the field
- */
- protected String contextFactoryName = "";
- /**
- * @todo-javadoc Describe the field
- */
- public final static String SUBTASK_NAME = "apacheSoap";
-
- /**
- * @todo-javadoc Describe the field
- */
- private final static String SOAP_SCHEMA =
"http://xml.apache.org/xml-soap/deployment";
- /**
- * @todo-javadoc Describe the field
- */
- private static String DEFAULT_TEMPLATE_FILE = "resources/apache-soap.xdt";
- /**
- * @todo-javadoc Describe the field
- */
- private static String GENERATED_FILE_NAME = "soap-dds-{0}.xml";
+ protected String contextFactoryName = "";
/**
* Describe what the ApacheSoapSubTask constructor does
- *
- * @todo-javadoc Write javadocs for constructor
*/
- public ApacheSoapSubTask() {
+ public ApacheSoapSubTask()
+ {
setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
setDestinationFile(GENERATED_FILE_NAME);
setSchema(SOAP_SCHEMA);
@@ -84,147 +56,149 @@
//setDtdURL(getClass().getResource( APACHE_SOAP_DTD_FILE_NAME_2_3 ));
}
-
/**
- * Sets the StatelessSessionEjbProvider attribute of the ApacheSoapSubTask
- * object
+ * Gets the SubTaskName attribute of the ApacheSoapSubTask object
*
- * @param statelessSessionEjbProvider The new StatelessSessionEjbProvider value
+ * @return The SubTaskName value
*/
- public void setStatelessSessionEjbProvider(String statelessSessionEjbProvider)
{
- this.statelessSessionEjbProvider = statelessSessionEjbProvider;
+ public String getSubTaskName()
+ {
+ return SUBTASK_NAME;
}
-
/**
- * Sets the StatefulSessionEjbProvider attribute of the ApacheSoapSubTask
+ * Gets the StatelessSessionEjbProvider attribute of the ApacheSoapSubTask
* object
*
- * @param statefulSessionEjbProvider The new StatefulSessionEjbProvider value
+ * @return The StatelessSessionEjbProvider value
*/
- public void setStatefulSessionEjbProvider(String statefulSessionEjbProvider) {
- this.statefulSessionEjbProvider = statefulSessionEjbProvider;
+ public String getStatelessSessionEjbProvider()
+ {
+ return statelessSessionEjbProvider;
}
-
/**
- * Sets the EntityEjbProvider attribute of the ApacheSoapSubTask object
+ * Gets the StatefulSessionEjbProvider attribute of the ApacheSoapSubTask
+ * object
*
- * @param entityEjbProvider The new EntityEjbProvider value
+ * @return The StatefulSessionEjbProvider value
*/
- public void setEntityEjbProvider(String entityEjbProvider) {
- this.entityEjbProvider = entityEjbProvider;
+ public String getStatefulSessionEjbProvider()
+ {
+ return statefulSessionEjbProvider;
}
-
/**
- * Sets the Providerclasspath attribute of the ApacheSoapSubTask object
+ * Gets the EntityEjbProvider attribute of the ApacheSoapSubTask object
*
- * @param providerClasspath The new Providerclasspath value
+ * @return The EntityEjbProvider value
*/
- public void setProviderclasspath(Path providerClasspath) {
- this.providerClasspath = providerClasspath;
+ public String getEntityEjbProvider()
+ {
+ return entityEjbProvider;
}
-
/**
- * Sets the ContextProviderUrl attribute of the ApacheSoapSubTask object
+ * Gets the ProviderClasspath attribute of the ApacheSoapSubTask object
*
- * @param contextProviderUrl The new ContextProviderUrl value
+ * @return The ProviderClasspath value
*/
- public void setContextProviderUrl(String contextProviderUrl) {
- this.contextProviderUrl = contextProviderUrl;
+ public Path getProviderClasspath()
+ {
+ return providerClasspath;
}
-
/**
- * Sets the ContextFactoryName attribute of the ApacheSoapSubTask object
+ * Gets the ContextProviderUrl attribute of the ApacheSoapSubTask object
*
- * @param contextFactoryName The new ContextFactoryName value
+ * @return The ContextProviderUrl value
*/
- public void setContextFactoryName(String contextFactoryName) {
- this.contextFactoryName = contextFactoryName;
+ public String getContextProviderUrl()
+ {
+ return contextProviderUrl;
}
-
/**
- * Gets the SubTaskName attribute of the ApacheSoapSubTask object
+ * Gets the ContextFactoryName attribute of the ApacheSoapSubTask object
*
- * @return The SubTaskName value
+ * @return The ContextFactoryName value
*/
- public String getSubTaskName() {
- return SUBTASK_NAME;
+ public String getContextFactoryName()
+ {
+ return contextFactoryName;
}
-
/**
- * Gets the StatelessSessionEjbProvider attribute of the ApacheSoapSubTask
+ * Sets the StatelessSessionEjbProvider attribute of the ApacheSoapSubTask
* object
*
- * @return The StatelessSessionEjbProvider value
+ * @param statelessSessionEjbProvider The new StatelessSessionEjbProvider
+ * value
*/
- public String getStatelessSessionEjbProvider() {
- return statelessSessionEjbProvider;
+ public void setStatelessSessionEjbProvider(String statelessSessionEjbProvider)
+ {
+ this.statelessSessionEjbProvider = statelessSessionEjbProvider;
}
-
/**
- * Gets the StatefulSessionEjbProvider attribute of the ApacheSoapSubTask
+ * Sets the StatefulSessionEjbProvider attribute of the ApacheSoapSubTask
* object
*
- * @return The StatefulSessionEjbProvider value
+ * @param statefulSessionEjbProvider The new StatefulSessionEjbProvider
+ * value
*/
- public String getStatefulSessionEjbProvider() {
- return statefulSessionEjbProvider;
+ public void setStatefulSessionEjbProvider(String statefulSessionEjbProvider)
+ {
+ this.statefulSessionEjbProvider = statefulSessionEjbProvider;
}
-
/**
- * Gets the EntityEjbProvider attribute of the ApacheSoapSubTask object
+ * Sets the EntityEjbProvider attribute of the ApacheSoapSubTask object
*
- * @return The EntityEjbProvider value
+ * @param entityEjbProvider The new EntityEjbProvider value
*/
- public String getEntityEjbProvider() {
- return entityEjbProvider;
+ public void setEntityEjbProvider(String entityEjbProvider)
+ {
+ this.entityEjbProvider = entityEjbProvider;
}
-
/**
- * Gets the ProviderClasspath attribute of the ApacheSoapSubTask object
+ * Sets the Providerclasspath attribute of the ApacheSoapSubTask object
*
- * @return The ProviderClasspath value
+ * @param providerClasspath The new Providerclasspath value
*/
- public Path getProviderClasspath() {
- return providerClasspath;
+ public void setProviderclasspath(Path providerClasspath)
+ {
+ this.providerClasspath = providerClasspath;
}
-
/**
- * Gets the ContextProviderUrl attribute of the ApacheSoapSubTask object
+ * Sets the ContextProviderUrl attribute of the ApacheSoapSubTask object
*
- * @return The ContextProviderUrl value
+ * @param contextProviderUrl The new ContextProviderUrl value
*/
- public String getContextProviderUrl() {
- return contextProviderUrl;
+ public void setContextProviderUrl(String contextProviderUrl)
+ {
+ this.contextProviderUrl = contextProviderUrl;
}
-
/**
- * Gets the ContextFactoryName attribute of the ApacheSoapSubTask object
+ * Sets the ContextFactoryName attribute of the ApacheSoapSubTask object
*
- * @return The ContextFactoryName value
+ * @param contextFactoryName The new ContextFactoryName value
*/
- public String getContextFactoryName() {
- return contextFactoryName;
+ public void setContextFactoryName(String contextFactoryName)
+ {
+ this.contextFactoryName = contextFactoryName;
}
-
/**
* Called to validate configuration parameters.
*
* @exception XDocletException Description of Exception
*/
- public void validateOptions() throws XDocletException {
+ public void validateOptions() throws XDocletException
+ {
super.validateOptions();
if (getStatelessSessionEjbProvider() == null ||
getStatelessSessionEjbProvider().trim().equals("")) {
@@ -243,20 +217,17 @@
}
}
-
/**
* Describe what the method does
*
* @exception XDocletException Describe the exception
- * @todo-javadoc Write javadocs for method
- * @todo-javadoc Write javadocs for exception
*/
- protected void engineStarted() throws XDocletException {
+ protected void engineStarted() throws XDocletException
+ {
String service_urn =
getCurrentClass().doc().tag("soap:service").value();
String dest_file_name = getDestinationFile();
System.out.println(Translator.getString("xdoclet.modules.apache.soap.ejb.Messages",
"generating_dd",
new String[]{getCurrentClass().qualifiedName(),
service_urn, dest_file_name}));
}
-
}
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel