tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java
Date Sat, 08 Jan 2005 11:24:24 GMT
pero        2005/01/08 03:24:24

  Modified:    catalina/src/share/org/apache/catalina/mbeans
                        MBeanFactory.java
  Log:
  delete last DefaultContext artfact
  
  Revision  Changes    Path
  1.33      +1 -40     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java
  
  Index: MBeanFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- MBeanFactory.java	1 Dec 2004 11:08:50 -0000	1.32
  +++ MBeanFactory.java	8 Jan 2005 11:24:24 -0000	1.33
  @@ -327,45 +327,6 @@
       }
   
       /**
  -     * Create a new DefaultContext.
  -     *
  -     * @param parent MBean Name of the associated parent component
  -     *
  -     * @exception Exception if an MBean cannot be created or registered
  -     */
  -    public String createDefaultContext(String parent)
  -        throws Exception {
  -        // XXX FIXME
  -        // Create a new StandardDefaultContext instance
  -        /*
  -        StandardDefaultContext context = new StandardDefaultContext();
  -
  -        // Add the new instance to its parent component
  -        ObjectName pname = new ObjectName(parent);
  -        Service service = getService(pname);       
  -        Engine engine = (Engine) service.getContainer();
  -        String hostName = pname.getKeyProperty("host");
  -        if (hostName == null) { //if DefaultContext is nested in Engine
  -            context.setParent(engine);
  -            engine.addDefaultContext(context);
  -        } else {                // if DefaultContext is nested in Host
  -            Host host = (Host) engine.findChild(hostName);
  -            context.setParent(host);
  -            host.addDefaultContext(context);
  -        }
  -
  -        // Return the corresponding MBean name
  -        ManagedBean managed = registry.findManagedBean("DefaultContext");
  -        ObjectName oname =
  -            MBeanUtils.createObjectName(managed.getDomain(), context);
  -        return (oname.toString());
  -        */
  -        return null;
  -
  -    }
  -
  -
  -    /**
        * Create a new HttpConnector
        *
        * @param parent MBean Name of the associated parent component
  
  
  

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


Mime
View raw message