geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel Kernel.java
Date Sun, 08 Feb 2004 21:53:20 GMT
jboynes     2004/02/08 13:53:20

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel
                        Kernel.java
  Log:
  Add startRecursive operation
  
  Revision  Changes    Path
  1.16      +17 -1     incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
  
  Index: Kernel.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Kernel.java	5 Feb 2004 05:26:33 -0000	1.15
  +++ Kernel.java	8 Feb 2004 21:53:20 -0000	1.16
  @@ -397,6 +397,22 @@
       }
   
       /**
  +     * Start a specific GBean and its children.
  +     * @param name the GBean to start
  +     * @throws InstanceNotFoundException if the GBean could not be found
  +     */
  +    public void startRecursiveGBean(ObjectName name) throws InstanceNotFoundException,
InvalidConfigException {
  +        try {
  +            mbServer.invoke(name, "startRecursive", null, null);
  +        } catch (MBeanException e) {
  +            // start is not supposed to throw anything
  +            throw new InvalidConfigException("Invalid GBean configuration for " + name,
e);
  +        } catch (ReflectionException e) {
  +            throw new InvalidConfigException("Invalid GBean configuration for " + name,
e);
  +        }
  +    }
  +
  +    /**
        * Stop a specific GBean.
        * @param name the GBean to stop
        * @throws InstanceNotFoundException if the GBean could not be found
  
  
  

Mime
View raw message