From: Vance K. <va...@us...> - 2006-01-29 01:51:06
|
User: vancek Date: 06/01/28 17:50:58 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: session implementation class now has the handle<operation name> method which contains the implementation for the session operation. it throws UnsupportedOperationException if not yet implemented. Revision Changes Path 1.6 +12 -10 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.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- SessionBeanImpl.vsl 17 Jan 2006 03:14:41 -0000 1.5 +++ SessionBeanImpl.vsl 29 Jan 2006 01:50:58 -0000 1.6 @@ -51,23 +51,25 @@ // -------- Business Methods -------------- #**##foreach ($operation in $operations) -#* *##set ($returnType = $operation.returnType.fullyQualifiedName) -#* *##set ($signature = $operation.signature) -#* *##set ($visibility = $operation.visibility) /** - * @see ${service.fullyQualifiedName}#${operation.getSignature(false)} + * @see ${service.fullyQualifiedServiceName}#${operation.getSignature(false)} */ - $visibility $returnType $signature -#* *##if ($operation.exceptionsPresent) - $operation.throwsClause -#* *##end +#* *##set ($abstract = $service.abstract && $operation.abstract) + protected#if ($abstract) abstract#end $operation.returnType.fullyQualifiedName $operation.implementationSignature +#* *##if ($abstract) + throws java.lang.Exception; +#* *##else + throws java.lang.Exception { //TODO: put your implementation here. #* *##if ($operation.returnTypePresent) // Dummy return value, just that the file compiles return $operation.returnType.javaNullString; +#* *##else + throw new java.lang.UnsupportedOperationException("${service.fullyQualifiedServiceName}.${operation.implementationSignature} Not implemented!"); #* *##end } +#* *##end #**##end #end |