From: Vance K. <va...@us...> - 2006-03-02 10:15:46
|
User: vancek Date: 06/03/02 02:15:44 Modified: andromda-ejb3/src/main/resources/templates/ejb3 MessageDrivenBean.vsl Log: define all operations, regardless of visibility add the @PreDestroy and @PostConstruct on operations with corresponding stereotypes Revision Changes Path 1.10 +9 -6 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBean.vsl Index: MessageDrivenBean.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenBean.vsl,v retrieving revision 1.9 retrieving revision 1.10 diff -u -w -r1.9 -r1.10 --- MessageDrivenBean.vsl 25 Feb 2006 14:43:41 -0000 1.9 +++ MessageDrivenBean.vsl 2 Mar 2006 10:15:42 -0000 1.10 @@ -117,10 +117,14 @@ #**##foreach ($operation in $operations) #* *##set ($visibility = $operation.visibility) -#* *##if ($visibility == "public") /** $operation.getDocumentation(" * ") */ +#* *##if ($operation.postConstruct) + @javax.ejb.PostConstruct +#* *##elseif ($operation.preDestroy) + @javax.ejb.PreDestroy +#* *##end #* *##set ($returnType = $operation.returnType.fullyQualifiedName) #* *##if ($operation.exceptionsPresent) $visibility abstract $returnType $operation.signature throws $operation.exceptionList; @@ -129,6 +133,5 @@ #* *##end #* *##end -#**##end #end } \ No newline at end of file |