From: Vance K. <va...@us...> - 2006-04-11 15:43:36
|
User: vancek Date: 06/04/11 08:43:34 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: fixed constructor naming - impl class name is now the bean name Revision Changes Path 1.11 +19 -6 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- SessionBeanImpl.vsl 14 Mar 2006 06:11:49 -0000 1.10 +++ SessionBeanImpl.vsl 11 Apr 2006 15:43:34 -0000 1.11 @@ -2,18 +2,31 @@ #if ($stringUtils.isNotBlank($service.packageName)) package $service.packageName; #end -#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceImplementationName,'.','/')}.java") +#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceName,'.','/')}.java") /** * @see ${service.fullyQualifiedServiceName} */ -public class ${service.serviceImplementationName} - extends ${service.fullyQualifiedServiceName} +/** + * Do not specify the javax.ejb.${service.type} annotation + * Instead, define the session bean in the ejb-jar.xml descriptor + * @javax.ejb.${service.type} + */ +#if ($service.webServiceEnabled) +@javax.jws.WebService(endpointInterface = "${service.fullyQualifiedWebServiceInterfaceName}") +#else +/** + * Uncomment to enable webservices for ${service.serviceName} + *@javax.jws.WebService(endpointInterface = "${service.fullyQualifiedWebServiceInterfaceName}") + */ +#end +public class ${service.serviceName} + extends ${service.fullyQualifiedServiceBaseName} { // --------------- Constructors --------------- ## Default create method with no arguments. - public ${service.serviceImplementationName}() + public ${service.serviceName}() { super(); } @@ -23,7 +36,7 @@ $operation.getDocumentation(" * ") * */ - public ${service.serviceImplementationName}($operation.typedArgumentList) + public ${service.serviceName}($operation.typedArgumentList) { // implementation } @@ -38,7 +51,7 @@ * @param $attribute.name Value for the ${attribute.name} property #**##end */ - public ${service.serviceImplementationName}(${service.getAttributesAsList($allAttributes, true, true)}) + public ${service.serviceName}(${service.getAttributesAsList($allAttributes, true, true)}) { #**##if(!$allAttributes.empty) super($service.getAttributesAsList($allAttributes, false, true)); |