From: Vance K. <va...@us...> - 2006-03-02 10:24:41
|
User: vancek Date: 06/03/02 02:24:35 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBean.vsl Log: add the lifecycle callback annotations for callback methods. if a lifecycle callback method, do not include other annotations on the operation. Revision Changes Path 1.19 +39 -20 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl Index: SessionBean.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- SessionBean.vsl 23 Feb 2006 06:26:35 -0000 1.18 +++ SessionBean.vsl 2 Mar 2006 10:24:34 -0000 1.19 @@ -278,6 +278,24 @@ /** $operation.getDocumentation(" * ") */ +## +## If this operation is a lifecycle callback, then exclude all other +## annotations except the callback annotations +## +#* *##if ($operation.lifecycleCallback) +#* *##if ($operation.postConstruct) + @javax.ejb.PostConstruct +#* *##elseif ($operation.preDestroy) + @javax.ejb.PreDestroy +#* *##end +#* *##if ($service.stateful) +#* *##if ($operation.postActivate) + @javax.ejb.PostActivate +#* *##elseif ($operation.prePassivate) + @javax.ejb.PrePassivate +#* *##end +#* *##end +#* *##else #* *##if (!$service.transactionManagementBean) #* *##if ($operation.transactionType) @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.${operation.transactionType}) @@ -310,6 +328,7 @@ #* *##if ($operation.excludeClassInterceptors) @javax.ejb.ExcludeClassInterceptors #* *##end +#* *##end $operation.visibility $operation.returnType.fullyQualifiedName $operation.signature #* *##if ($operation.exceptionsPresent) $operation.throwsClause |