User: vharcq  
  Date: 02/03/14 10:39:25

  Modified:    core/src/xdoclet/ejb/tags InterfaceTagsHandler.java
  Log:
  EntityBean "local" did generate method-intf "Remote" in ASM
  
  Revision  Changes    Path
  1.22      +15 -6     xdoclet/core/src/xdoclet/ejb/tags/InterfaceTagsHandler.java
  
  Index: InterfaceTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/tags/InterfaceTagsHandler.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -w -r1.21 -r1.22
  --- InterfaceTagsHandler.java 22 Feb 2002 23:20:09 -0000      1.21
  +++ InterfaceTagsHandler.java 14 Mar 2002 18:39:25 -0000      1.22
  @@ -26,7 +26,7 @@
   /**
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Oct 15, 2001
  - * @version   $Revision: 1.21 $
  + * @version   $Revision: 1.22 $
    */
   public class InterfaceTagsHandler extends EjbTagsHandler
   {
  @@ -241,7 +241,7 @@
                }
                else
                {
  -                     String view_type = getMethodTagValue( method, 
"ejb:interface-method", "view-type", 0, "local,remote,both", "remote", false );
  +                     String view_type = getMethodTagValue( method, 
"ejb:interface-method", "view-type", 0, "local,remote,both", "both", false );
   
                        if( view_type.equals( type ) || view_type.equals( "both" ) )
                                return true;
  @@ -367,14 +367,14 @@
                if( isComponentInterfaceMethod( getCurrentMethod() ) )
                {
                        //is a component intf method
  -                     String view_type = getMethodTagValue( getCurrentMethod(), 
"ejb:interface-method", "view-type", 0, "local,remote,both", "remote", false );
  +                     String view_type = getMethodTagValue( getCurrentMethod(), 
"ejb:interface-method", "view-type", 0, "local,remote,both", "both", false );
   
                        view_types = getViewTypesFromString( view_type );
                }
                else
                {
                        //is a home intf method
  -                     String view_type = getClassTagValue( getCurrentClass(), 
"ejb:bean", "view-type", -1, "local,remote,both", "remote", false, false );
  +                     String view_type = getClassTagValue( getCurrentClass(), 
"ejb:bean", "view-type", -1, "local,remote,both", "both", false, false );
   
                        view_types = getViewTypesFromString( view_type );
                }
  @@ -423,8 +423,17 @@
                        if( currentMethodViewType != null )
                                view_type = currentMethodViewType;
                        else
  +                     {
  +                             if( EjbTagsHandler.isOnlyLocalEjb( getCurrentClass() ) 
)
  +                                     view_type = "local";
  +                             else if( EjbTagsHandler.isOnlyRemoteEjb( 
getCurrentClass() ) )
  +                                     view_type = "remote";
  +                             else if( EntityTagsHandler.isEntity( getCurrentClass() 
) )
  +                                     view_type = "local";
  +                             else
                                view_type = "remote";
                }
  +             }
   
                if( view_type.equals( "remote" ) )
                        return ( isRemoteMethod( getCurrentMethod() ) ? "Remote" : 
"Home" );
  @@ -515,7 +524,7 @@
   
                if( viewType == null )
                {
  -                     viewType = getClassTagValue( getCurrentClass(), "ejb:bean", 
"view-type", 0, "local,remote,both", "remote", true, false );
  +                     viewType = getClassTagValue( getCurrentClass(), "ejb:bean", 
"view-type", 0, "local,remote,both", "both", true, false );
   
                        if( "both".equals( viewType ) )
                                viewType = "local,remote";
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to