From: Vance K. <va...@us...> - 2006-03-05 05:57:39
|
User: vancek Date: 06/03/04 21:57:37 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionRemote.vsl Log: check business methods are not lifecycle callbacks Revision Changes Path 1.5 +7 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionRemote.vsl Index: SessionRemote.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionRemote.vsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- SessionRemote.vsl 9 Feb 2006 07:14:21 -0000 1.4 +++ SessionRemote.vsl 5 Mar 2006 05:57:37 -0000 1.5 @@ -17,7 +17,7 @@ #set ($constants = $service.constants) #if (!$constants.empty) - // ---------- accessors for constants ----------- + // ---------- Accessors For Constants ----------- #**##foreach($constant in $constants) ## Only expose the method if it is public. @@ -34,7 +34,7 @@ #set ($attributes = $service.instanceAttributes) #if (!$attributes.empty) - // --------------- attributes --------------------- + // --------------- Attributes --------------------- #**##foreach ($attribute in $attributes) ## Only expose the method to the component interface if it is public. @@ -59,11 +59,14 @@ #set ($operations = $service.businessOperations) #if (!$operations.empty) - // ------------ business methods ----------------- + // ------------ Business Methods ----------------- #**##foreach ($operation in $operations) +## +## Only expose methods that are not lifecycle callbacks ## Only expose public methods with remote view type accessability -#* *##if ($operation.visibility == "public" && ($operation.viewTypeRemote || $operation.viewTypeBoth)) +## +#* *##if (!$operation.lifecycleCallback && $operation.visibility == "public" && ($operation.viewTypeRemote || $operation.viewTypeBoth)) /** $operation.getDocumentation(" * ") */ |