You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by ae...@apache.org on 2006/08/23 01:51:17 UTC
svn commit: r433807 -
/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/Axis2Projectizer.java
Author: aeberbac
Date: Tue Aug 22 16:51:16 2006
New Revision: 433807
URL: http://svn.apache.org/viewvc?rev=433807&view=rev
Log:
Changed visibility on some methods to enable subclassing and reuse
Modified:
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/Axis2Projectizer.java
Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/Axis2Projectizer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/Axis2Projectizer.java?rev=433807&r1=433806&r2=433807&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/Axis2Projectizer.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/Axis2Projectizer.java Tue Aug 22 16:51:16 2006
@@ -92,23 +92,23 @@
ConfigurationData.CAPABILITIES_MAP_CONFIGURATION
};
- private File _targetDirectory = null;
+ protected File _targetDirectory = null;
- private Map _capabilities = null;
+ protected Map _capabilities = null;
- private Map _files = null;
+ protected Map _files = null;
- private boolean _overwrite = false;
+ protected boolean _overwrite = false;
- private Document _descriptor = null;
+ protected Document _descriptor = null;
- private QName _portType = null;
+ protected QName _portType = null;
- private Document _wsdl = null;
+ protected Document _wsdl = null;
- private String _serviceName = null;
+ protected String _serviceName = null;
- private String _wsdlFileName;
+ protected String _wsdlFileName;
public void projectize(ConfigurationData configuration) throws Exception {
ConfigurationData.checkConfiguration(this, configuration);
@@ -130,7 +130,7 @@
createWSDLFile(webContentDir);
}
- private void loadParameters(ConfigurationData configuration) {
+ protected void loadParameters(ConfigurationData configuration) {
_capabilities = (Map)configuration.getParameter(ConfigurationData.CAPABILITIES_MAP);
_files = (Map)configuration.getParameter(ConfigurationData.FILES_MAP);
_overwrite = ((Boolean)configuration.getParameter(ConfigurationData.OVERWRITE)).booleanValue();
@@ -159,7 +159,7 @@
}
protected void createServicesDescriptor(File webContentDir, Map capabilities) throws Exception {
- InputStream servicesDescriptorTemplate = FileUtils.loadFromContext(this.getClass(), SERVICES_XML);
+ InputStream servicesDescriptorTemplate = FileUtils.loadFromContext(Axis2Projectizer.class, SERVICES_XML);
File servicesDescriptor = new File(webContentDir,SERVICES_TEMPLATE_PATH);
copyStreamCheck(servicesDescriptorTemplate, servicesDescriptor);
updateServices(servicesDescriptor, capabilities);
@@ -231,10 +231,11 @@
Element operation = XmlUtils.findFirstInSubTree(documentElement, OPERATION_QNAME);
for (Iterator i = capabilities.values().iterator(); i.hasNext();) {
+
Capability capability = (Capability) i.next();
for (Iterator j = capability.getOperations().iterator(); j.hasNext();) {
JavaMethod method = (JavaMethod) j.next();
-
+
Element actionMapping = descriptorDocument
.createElement(ACTION_MAPPING);
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org