User: pathoss 
  Date: 02/05/12 07:58:06

  Modified:    modules/ejb/src/xdoclet/modules/ejb/lookup Tag:
                        MODULE_REFACTORING_BRANCH
                        LookupUtilTagsHandler.java
  Log:
  Refactored.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +14 -15    
xdoclet/modules/ejb/src/xdoclet/modules/ejb/lookup/Attic/LookupUtilTagsHandler.java
  
  Index: LookupUtilTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/lookup/Attic/LookupUtilTagsHandler.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -w -r1.1.2.3 -r1.1.2.4
  --- LookupUtilTagsHandler.java        12 May 2002 13:53:30 -0000      1.1.2.3
  +++ LookupUtilTagsHandler.java        12 May 2002 14:58:06 -0000      1.1.2.4
  @@ -21,11 +21,10 @@
    * @author               Ara Abrahamian ([EMAIL PROTECTED])
    * @created              Oct 15, 2001
    * @xdoclet:taghandler   namespace="EjbUtilObj"
  - * @version              $Revision: 1.1.2.3 $
  + * @version              $Revision: 1.1.2.4 $
    */
   public class LookupUtilTagsHandler extends EjbTagsHandler
   {
  -
       /**
        * Similar to {@link 
src.xdoclet.modules.ejb.intf.InterfaceTagsHandler#getComponentInterface}.
        * Relies on the ejb:home tag, which has the following relevant properties:
  @@ -61,27 +60,27 @@
           Log log = LogUtil.getLog(LookupUtilTagsHandler.class, "utilClassName");
   
           String fileName = clazz.containingPackage().name();
  -        String util_pattern = null;
  +        String utilPattern = null;
   
           if (log.isDebugEnabled()) {
               log.debug(" utility object  for " + clazz.qualifiedName());
           }
   
  -        util_pattern = getUtilClassPattern();
  +        utilPattern = getUtilClassPattern();
   
  -        String ejb_name = null;
  -        String package_pattern = null;
  +        String ejbName = null;
  +        String packagePattern = null;
   
  -        if (util_pattern.indexOf("{0}") != -1) {
  -            ejb_name = MessageFormat.format(util_pattern, new 
Object[]{getShortEjbNameFor(clazz)});
  +        if (utilPattern.indexOf("{0}") != -1) {
  +            ejbName = MessageFormat.format(utilPattern, new 
Object[]{getShortEjbNameFor(clazz)});
           }
           else {
  -            ejb_name = util_pattern;
  +            ejbName = utilPattern;
           }
   
           // Fix package name
  -        fileName = choosePackage(fileName, package_pattern, 
LookupObjectSubTask.SUBTASK_NAME);
  -        fileName += "." + ejb_name;
  +        fileName = choosePackage(fileName, packagePattern, 
LookupObjectSubTask.SUBTASK_NAME);
  +        fileName += '.' + ejbName;
   
           return fileName;
       }
  @@ -93,10 +92,10 @@
        */
       protected static String getUtilClassPattern()
       {
  -        LookupObjectSubTask util_subtask = ((LookupObjectSubTask) 
DocletContext.getInstance().getSubTaskBy(LookupObjectSubTask.SUBTASK_NAME));
  +        LookupObjectSubTask utilSubtask = ((LookupObjectSubTask) 
DocletContext.getInstance().getSubTaskBy(LookupObjectSubTask.SUBTASK_NAME));
   
  -        if (util_subtask != null) {
  -            return util_subtask.getUtilClassPattern();
  +        if (utilSubtask != null) {
  +            return utilSubtask.getUtilClassPattern();
           }
           else {
               return LookupObjectSubTask.DEFAULT_UTIL_CLASS_PATTERN;
  
  
  

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to