costin      2002/10/17 10:32:23

  Modified:    naming/src/org/apache/naming/core BaseDirContext.java
                        BaseNaming.java
  Log:
  As usual, I need to compile it before commit.
  
  Revision  Changes    Path
  1.4       +0 -15     
jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseDirContext.java
  
  Index: BaseDirContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseDirContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BaseDirContext.java       17 Oct 2002 16:45:14 -0000      1.3
  +++ BaseDirContext.java       17 Oct 2002 17:32:23 -0000      1.4
  @@ -134,21 +134,6 @@
           throw new OperationNotSupportedException();
       }
   
  -    public void size() throws NamingException
  -    {
  -        throw new OperationNotSupportedException("size");
  -    }
  -
  -    public Name childNameAt( int i ) throws NamingException
  -    {
  -        return null;
  -    }
  -
  -    public Object childAt( int i ) throws NamingException
  -    {
  -        return null;
  -    }
  -    
       public DirContext createSubcontext(Name name, Attributes attrs)
           throws NamingException
       {
  
  
  
  1.2       +4 -3      
jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseNaming.java
  
  Index: BaseNaming.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseNaming.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseNaming.java   17 Oct 2002 16:47:14 -0000      1.1
  +++ BaseNaming.java   17 Oct 2002 17:32:23 -0000      1.2
  @@ -68,6 +68,7 @@
   import javax.naming.directory.ModificationItem;
   import javax.naming.directory.SearchControls;
   import org.apache.tomcat.util.res.StringManager;
  +import org.apache.tomcat.util.IntrospectionUtils;
   
   // Based on a merge of various catalina naming contexts
   // Name is used - it provide better oportunities for reuse and optimizations
  @@ -122,9 +123,9 @@
                       // XXX We need a mechanism to select properties for
                       // this task. Maybe all contexts should use as property prefix 
the
                       // class name ? Or base class name ? 
  -                    IntrospectionUtil.setProperty( this, entryName, entryValue );
  +                    IntrospectionUtils.setAttribute( this, entryName, entryValue );
                   } catch(Exception ex ) {
  -                    System.out.println("Unsuported property " + entryName + " " + 
ex.getMassage());
  +                    System.out.println("Unsuported property " + entryName + " " + 
ex.getMessage());
                   }
               }
           }
  @@ -299,7 +300,7 @@
           throws NamingException
       {
           // Override if needed
  -        Object value = lookup(oldName, false, null);
  +        Object value = lookup(oldName, false);
           bind(newName, value, null, false);
           unbind(oldName, true);
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>

Reply via email to