Author: ips Date: Wed Jan 5 11:48:59 2005 New Revision: 124254 URL: http://svn.apache.org/viewcvs?view=rev&rev=124254 Log: various
Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetMultipleResourcePropertiesPortType2JavaInfo.java incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ImmediateResourceTerminationPortType2JavaInfo.java incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/QueryResourcePropertiesPortType2JavaInfo.java incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/SetResourcePropertiesPortType2JavaInfo.java Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java?view=diff&rev=124254&p1=incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java&r1=124253&p2=incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java&r2=124254 ============================================================================== --- incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java (original) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java Wed Jan 5 11:48:59 2005 @@ -23,14 +23,16 @@ import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; -import org.apache.velocity.exception.ParseErrorException; -import org.apache.velocity.exception.ResourceNotFoundException; import org.apache.ws.resource.ResourceDefinition; import org.apache.ws.resource.i18n.Keys; import org.apache.ws.resource.i18n.MessagesImpl; import org.apache.ws.resource.impl.ResourceDefinitionImpl; +import org.apache.ws.resource.tool.porttype.GetMultipleResourcePropertiesPortType2JavaInfo; import org.apache.ws.resource.tool.porttype.GetResourcePropertyPortType2JavaInfo; +import org.apache.ws.resource.tool.porttype.ImmediateResourceTerminationPortType2JavaInfo; +import org.apache.ws.resource.tool.porttype.QueryResourcePropertiesPortType2JavaInfo; import org.apache.ws.resource.tool.porttype.ScheduledResourceTerminationPortType2JavaInfo; +import org.apache.ws.resource.tool.porttype.SetResourcePropertiesPortType2JavaInfo; import org.apache.ws.resource.tool.velocity.ConstQNames; import org.apache.ws.resource.tool.velocity.ImplementsListBuilder; import org.apache.ws.resource.tool.velocity.ServiceProperties; @@ -162,8 +164,8 @@ public void generate() throws Exception { - //generateXmlBeans( ); - initVelocityProperties(); + generateXmlBeans(); + initVelocity(); for ( int i = 0; i < m_wsdlFiles.length; i++ ) { WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); @@ -174,77 +176,11 @@ { Service service = (Service) serviceIter.next(); ResourceDefinition resourceDef = new ResourceDefinitionImpl( def, service ); - generateSkeletonCode( resourceDef, wsdlFile.getName() ); + processTemplates( resourceDef, wsdlFile.getName() ); } } } - /** - * DOCUMENT_ME - * - * @param args DOCUMENT_ME - * - * @throws ParseException DOCUMENT_ME - */ - public static void main( String[] args ) - throws ParseException - { - args = new String[] - { - "-s", "C;/gen/src", - "-c", "C:/gen/classes", - "C:/opt/tomcat5.0.28/webapps/wsrf/wsdl/FileSystem.wsdl" - }; - CommandLine cmdLine = new PosixParser().parse( CMD_LINE_OPTIONS, args, true ); - checkForRequiredOption( cmdLine, Opts.SRC_OUTPUT_DIR ); - checkForRequiredOption( cmdLine, Opts.CLASSES_OUTPUT_DIR ); - File srcOutputDir = new File( cmdLine.getOptionValue( Opts.SRC_OUTPUT_DIR ) ); - File classesOutputDir = new File( cmdLine.getOptionValue( Opts.CLASSES_OUTPUT_DIR ) ); - Wsdl2JavaOptions options = new Wsdl2Java.Wsdl2JavaOptions(); - if ( cmdLine.hasOption( Opts.SINGLETON ) ) - { - options.setSingleton( true ); - } - if ( cmdLine.hasOption( Opts.RESOURCE_KEY ) ) - { - options.setResourceKey( QName.valueOf( cmdLine.getOptionValue( Opts.RESOURCE_KEY ) ) ); - } - if ( cmdLine.hasOption( Opts.CLASSPATH ) ) - { - options.setClasspath( cmdLine.getOptionValue( Opts.CLASSPATH ) ); - } - - if ( cmdLine.hasOption( Opts.VERBOSE ) ) - { - options.setVerbose( Boolean.valueOf( cmdLine.getOptionValue( Opts.VERBOSE ) ).booleanValue() ); - } - - if ( cmdLine.hasOption( Opts.DEBUG ) ) - { - options.setVerbose( Boolean.valueOf( cmdLine.getOptionValue( Opts.DEBUG ) ).booleanValue() ); - } - - File[] wsdlFiles = new File[cmdLine.getArgs().length]; - for ( int i = 0; i < cmdLine.getArgs().length; i++ ) - { - wsdlFiles[i] = new File( cmdLine.getArgs()[i] ); - } - - try - { - System.out.println( MSG.getMessage( Keys.WSDL4J_PASSED_ARGUMENTS, - Integer.toString( wsdlFiles.length ), - srcOutputDir.toString(), - classesOutputDir.toString() ) ); - new Wsdl2Java( wsdlFiles, srcOutputDir, classesOutputDir, options ).generate(); - } - catch ( Exception e ) - { - e.printStackTrace(); - System.exit( 1 ); - } - } - private static void checkForRequiredOption( CommandLine cmdLine, String opt ) { @@ -279,7 +215,7 @@ MSG.getMessage( Keys.OPT_CLASSPATH_SENT_TO_XMLBEANS ) ); } - private void generateSkeletonCode( ResourceDefinition resourceDef, String wsdlFileName ) + private void processTemplates( ResourceDefinition resourceDef, String wsdlFileName ) throws Exception { String serviceName = StringUtils.capitalize( resourceDef.getName() ); @@ -295,64 +231,64 @@ //generate files File packageDir = getPackageDir( resourceDef.getDefinition().getTargetNamespace() ); packageDir.mkdirs(); - File generatedSrc = new File( packageDir, "Abstract" + serviceName + "Service.java" ); - writeGeneratedSrcFile( context, + File outputFile = new File( packageDir, "Abstract" + serviceName + "Service.java" ); + processTemplate( context, "templates/AbstractService.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); - generatedSrc = new File( packageDir, serviceName + "Service.java" ); + outputFile = new File( packageDir, serviceName + "Service.java" ); //only generate if it doesn't exist - if ( !generatedSrc.exists() ) + if ( !outputFile.exists() ) { - writeGeneratedSrcFile( context, + processTemplate( context, "templates/Service.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); } - generatedSrc = new File( packageDir, "Abstract" + serviceName + "Resource.java" ); - writeGeneratedSrcFile( context, + outputFile = new File( packageDir, "Abstract" + serviceName + "Resource.java" ); + processTemplate( context, "templates/AbstractResource.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); - generatedSrc = new File( packageDir, serviceName + "Resource.java" ); + outputFile = new File( packageDir, serviceName + "Resource.java" ); //only generate if it doesn't exist - if ( !generatedSrc.exists() ) + if ( !outputFile.exists() ) { - writeGeneratedSrcFile( context, + processTemplate( context, "templates/Resource.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); } - generatedSrc = new File( packageDir, serviceName + "Home.java" ); + outputFile = new File( packageDir, serviceName + "Home.java" ); //only generate if it doesn't exist - if ( !generatedSrc.exists() ) + if ( !outputFile.exists() ) { - writeGeneratedSrcFile( context, + processTemplate( context, "templates/Home.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); } //only if they implemented properties does this make sense. if ( resourceDef.hasProperties() ) { - generatedSrc = new File( packageDir, serviceName + "PropertyQNames.java" ); - writeGeneratedSrcFile( context, + outputFile = new File( packageDir, serviceName + "PropertyQNames.java" ); + processTemplate( context, "templates/PropertyQNames.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); } - generatedSrc = new File( packageDir, serviceName + "_deploy.wsdd" ); - writeGeneratedSrcFile( context, + outputFile = new File( packageDir, serviceName + "_deploy.wsdd" ); + processTemplate( context, "templates/deploy.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); - generatedSrc = new File( packageDir, serviceName + "_jndi-config.wsdd" ); - writeGeneratedSrcFile( context, + outputFile = new File( packageDir, serviceName + "_jndi-config.wsdd" ); + processTemplate( context, "templates/jndi.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); - generatedSrc = new File( packageDir, serviceName + "CustomOperationsPortType.java" ); - writeGeneratedSrcFile( context, + outputFile = new File( packageDir, serviceName + "CustomOperationsPortType.java" ); + processTemplate( context, "templates/CustomOperationsPortType.vm", - generatedSrc.getAbsolutePath() ); + outputFile ); } catch ( Exception e ) @@ -364,16 +300,17 @@ private void initPortTypeInfoMap() { addPortType2JavaInfo( new GetResourcePropertyPortType2JavaInfo() ); + addPortType2JavaInfo( new GetMultipleResourcePropertiesPortType2JavaInfo() ); + addPortType2JavaInfo( new SetResourcePropertiesPortType2JavaInfo() ); + addPortType2JavaInfo( new QueryResourcePropertiesPortType2JavaInfo() ); + addPortType2JavaInfo( new ImmediateResourceTerminationPortType2JavaInfo() ); addPortType2JavaInfo( new ScheduledResourceTerminationPortType2JavaInfo() ); - // TODO: add other WSRF portTypes } private File getPackageDir( String targetNamespace ) { String javaPackageName = GenerationUtils.getJavaPackageName( targetNamespace ); - javaPackageName = javaPackageName.replace( '.', '/' ); - File packageDir = new File( m_srcOutputDir, javaPackageName ); - return packageDir; + return new File( m_srcOutputDir, javaPackageName.replace( '.', '/' ) ); } private ServiceProperties buildServiceProperties( String serviceName, ResourceDefinition resourceDef, @@ -421,11 +358,11 @@ { if ( ptInfo.getResourceTemplateFileName() != null ) { - props.addResourceIncludeFile( ptInfo.getResourceTemplateFileName() ); + props.addResourceIncludeFile( ptInfo.getResourceTemplateFileName() ); } if ( ptInfo.getServiceTemplateFileName() != null ) { - props.addServiceIncludeFile( ptInfo.getServiceTemplateFileName() ); + props.addServiceIncludeFile( ptInfo.getServiceTemplateFileName() ); } } } @@ -454,7 +391,7 @@ } } - private void initVelocityProperties() + private void initVelocity() throws Exception { Velocity.addProperty( Velocity.RESOURCE_LOADER, "classpath" ); @@ -465,9 +402,9 @@ Velocity.init(); } - private void writeGeneratedSrcFile( VelocityContext context, - String templateName, - String outputSrcPath ) + private void processTemplate( VelocityContext context, + String templateLocation, + File outputFile ) throws Exception { /* @@ -478,37 +415,27 @@ * Exception : if something else goes wrong (this is generally * indicative of as serious problem...) */ - Template template = null; - try { - template = Velocity.getTemplate( templateName ); + Template template = Velocity.getTemplate( templateLocation ); /* * Now have the template engine process your template using the * data placed into the context. Think of it as a 'merge' * of the template and the data to produce the output stream. */ - FileWriter writer = writer = new FileWriter( outputSrcPath ); - + FileWriter writer = new FileWriter( outputFile ); if ( template != null ) { template.merge( context, writer ); } - - /* - * flush and cleanup - */ writer.flush(); writer.close(); } - catch ( ResourceNotFoundException rnfe ) - { - System.out.println( "Example : error : cannot find template " + templateName ); - } - catch ( ParseErrorException pee ) + catch ( Exception e ) { - System.out.println( "Example : Syntax error in template " + templateName + ":" + pee ); + System.err.println( "Error processing template " + templateLocation ); + e.printStackTrace(); } } @@ -654,6 +581,71 @@ String CLASSPATH = "C"; String SINGLETON = "S"; String RESOURCE_KEY = "k"; + } + + /** + * DOCUMENT_ME + * + * @param args DOCUMENT_ME + * + * @throws ParseException DOCUMENT_ME + */ + public static void main( String[] args ) + throws ParseException + { + args = new String[] + { + "-s", "C:/gen/src", + "-c", "C:/gen/classes", + "C:/opt/tomcat5.0.28/webapps/wsrf/wsdl/FileSystem.wsdl" + }; + CommandLine cmdLine = new PosixParser().parse( CMD_LINE_OPTIONS, args, true ); + checkForRequiredOption( cmdLine, Opts.SRC_OUTPUT_DIR ); + checkForRequiredOption( cmdLine, Opts.CLASSES_OUTPUT_DIR ); + File srcOutputDir = new File( cmdLine.getOptionValue( Opts.SRC_OUTPUT_DIR ) ); + File classesOutputDir = new File( cmdLine.getOptionValue( Opts.CLASSES_OUTPUT_DIR ) ); + + Wsdl2JavaOptions options = new Wsdl2Java.Wsdl2JavaOptions(); + if ( cmdLine.hasOption( Opts.SINGLETON ) ) + { + options.setSingleton( true ); + } + if ( cmdLine.hasOption( Opts.RESOURCE_KEY ) ) + { + options.setResourceKey( QName.valueOf( cmdLine.getOptionValue( Opts.RESOURCE_KEY ) ) ); + } + if ( cmdLine.hasOption( Opts.CLASSPATH ) ) + { + options.setClasspath( cmdLine.getOptionValue( Opts.CLASSPATH ) ); + } + if ( cmdLine.hasOption( Opts.VERBOSE ) ) + { + options.setVerbose( Boolean.valueOf( cmdLine.getOptionValue( Opts.VERBOSE ) ).booleanValue() ); + } + if ( cmdLine.hasOption( Opts.DEBUG ) ) + { + options.setVerbose( Boolean.valueOf( cmdLine.getOptionValue( Opts.DEBUG ) ).booleanValue() ); + } + + File[] wsdlFiles = new File[cmdLine.getArgs().length]; + for ( int i = 0; i < cmdLine.getArgs().length; i++ ) + { + wsdlFiles[i] = new File( cmdLine.getArgs()[i] ); + } + + try + { + System.out.println( MSG.getMessage( Keys.WSDL4J_PASSED_ARGUMENTS, + Integer.toString( wsdlFiles.length ), + srcOutputDir.toString(), + classesOutputDir.toString() ) ); + new Wsdl2Java( wsdlFiles, srcOutputDir, classesOutputDir, options ).generate(); + } + catch ( Exception e ) + { + e.printStackTrace(); + System.exit( 1 ); + } } } Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetMultipleResourcePropertiesPortType2JavaInfo.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetMultipleResourcePropertiesPortType2JavaInfo.java?view=auto&rev=124254 ============================================================================== --- (empty file) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetMultipleResourcePropertiesPortType2JavaInfo.java Wed Jan 5 11:48:59 2005 @@ -0,0 +1,56 @@ +/*=============================================================================* + * Copyright 2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *=============================================================================*/ +package org.apache.ws.resource.tool.porttype; + +import org.apache.ws.resource.properties.v1_2.porttype.GetMultipleResourcePropertiesPortType; +import org.apache.ws.resource.tool.PortType2JavaInfo; + +import javax.xml.namespace.QName; + +/** + * TODO + * + * @author Ian Springer (ian DOT springer AT hp DOT com) + */ +public class GetMultipleResourcePropertiesPortType2JavaInfo implements PortType2JavaInfo +{ + + public QName getName() + { + return GetMultipleResourcePropertiesPortType.NAME; + } + + public String getResourceInterfaceName() + { + return null; + } + + public String getServiceInterfaceName() + { + return GetMultipleResourcePropertiesPortType.class.getName(); + } + + public String getResourceTemplateFileName() + { + return null; + } + + public String getServiceTemplateFileName() + { + return "templates/GetMultiple.txt"; + } + +} Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java?view=diff&rev=124254&p1=incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java&r1=124253&p2=incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java&r2=124254 ============================================================================== --- incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java (original) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/GetResourcePropertyPortType2JavaInfo.java Wed Jan 5 11:48:59 2005 @@ -46,11 +46,12 @@ public String getResourceTemplateFileName() { - return "PropertiesResource.txt"; + return "templates/PropertiesResource.txt"; } public String getServiceTemplateFileName() { - return "GetResource.txt"; + return "templates/GetResource.txt"; } + } Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ImmediateResourceTerminationPortType2JavaInfo.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ImmediateResourceTerminationPortType2JavaInfo.java?view=auto&rev=124254 ============================================================================== --- (empty file) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ImmediateResourceTerminationPortType2JavaInfo.java Wed Jan 5 11:48:59 2005 @@ -0,0 +1,57 @@ +/*=============================================================================* + * Copyright 2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *=============================================================================*/ +package org.apache.ws.resource.tool.porttype; + +import org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource; +import org.apache.ws.resource.lifetime.v1_2.porttype.ScheduledResourceTerminationPortType; +import org.apache.ws.resource.lifetime.v1_2.porttype.ImmediateResourceTerminationPortType; +import org.apache.ws.resource.properties.v1_2.porttype.GetResourcePropertyPortType; +import org.apache.ws.resource.tool.PortType2JavaInfo; + +import javax.xml.namespace.QName; + +/** + * TODO + * + * @author Ian Springer (ian DOT springer AT hp DOT com) + */ +public class ImmediateResourceTerminationPortType2JavaInfo implements PortType2JavaInfo +{ + public QName getName() + { + return ImmediateResourceTerminationPortType.NAME; + } + + public String getResourceInterfaceName() + { + return null; + } + + public String getServiceInterfaceName() + { + return ImmediateResourceTerminationPortType.class.getName(); + } + + public String getResourceTemplateFileName() + { + return null; + } + + public String getServiceTemplateFileName() + { + return "templates/ImmediateResourceTermination.txt"; + } +} Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/QueryResourcePropertiesPortType2JavaInfo.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/QueryResourcePropertiesPortType2JavaInfo.java?view=auto&rev=124254 ============================================================================== --- (empty file) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/QueryResourcePropertiesPortType2JavaInfo.java Wed Jan 5 11:48:59 2005 @@ -0,0 +1,56 @@ +/*=============================================================================* + * Copyright 2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *=============================================================================*/ +package org.apache.ws.resource.tool.porttype; + +import org.apache.ws.resource.properties.v1_2.porttype.QueryResourcePropertiesPortType; +import org.apache.ws.resource.tool.PortType2JavaInfo; + +import javax.xml.namespace.QName; + +/** + * TODO + * + * @author Ian Springer (ian DOT springer AT hp DOT com) + */ +public class QueryResourcePropertiesPortType2JavaInfo implements PortType2JavaInfo +{ + + public QName getName() + { + return QueryResourcePropertiesPortType.NAME; + } + + public String getResourceInterfaceName() + { + return null; + } + + public String getServiceInterfaceName() + { + return QueryResourcePropertiesPortType.class.getName(); + } + + public String getResourceTemplateFileName() + { + return null; + } + + public String getServiceTemplateFileName() + { + return "templates/Query.txt"; + } + +} Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java?view=diff&rev=124254&p1=incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java&r1=124253&p2=incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java&r2=124254 ============================================================================== --- incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java (original) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/ScheduledResourceTerminationPortType2JavaInfo.java Wed Jan 5 11:48:59 2005 @@ -46,11 +46,11 @@ public String getResourceTemplateFileName() { - return "ScheduledResourceTerminationResource.txt"; + return "templates/ScheduledResourceTerminationResource.txt"; } public String getServiceTemplateFileName() { - return "SetTerminationTime.txt"; + return "templates/SetTerminationTime.txt"; } } Added: incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/SetResourcePropertiesPortType2JavaInfo.java Url: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/SetResourcePropertiesPortType2JavaInfo.java?view=auto&rev=124254 ============================================================================== --- (empty file) +++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/porttype/SetResourcePropertiesPortType2JavaInfo.java Wed Jan 5 11:48:59 2005 @@ -0,0 +1,56 @@ +/*=============================================================================* + * Copyright 2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *=============================================================================*/ +package org.apache.ws.resource.tool.porttype; + +import org.apache.ws.resource.properties.v1_2.porttype.SetResourcePropertiesPortType; +import org.apache.ws.resource.tool.PortType2JavaInfo; + +import javax.xml.namespace.QName; + +/** + * TODO + * + * @author Ian Springer (ian DOT springer AT hp DOT com) + */ +public class SetResourcePropertiesPortType2JavaInfo implements PortType2JavaInfo +{ + + public QName getName() + { + return SetResourcePropertiesPortType.NAME; + } + + public String getResourceInterfaceName() + { + return null; + } + + public String getServiceInterfaceName() + { + return SetResourcePropertiesPortType.class.getName(); + } + + public String getResourceTemplateFileName() + { + return null; + } + + public String getServiceTemplateFileName() + { + return "templates/Set.txt"; + } + +} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
