You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by da...@apache.org on 2003/08/19 00:14:26 UTC

cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment DeploymentInfo.java DeploymentInfoMBean.java

dain        2003/08/18 15:14:26

  Modified:    modules/core/src/java/org/apache/geronimo/deployment
                        DeploymentInfo.java DeploymentInfoMBean.java
  Log:
  DeploymentInfo is now StateManageable, so an entire deployment unit can be started or
  stopped as a whole.
  
  Revision  Changes    Path
  1.3       +10 -2     incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/DeploymentInfo.java
  
  Index: DeploymentInfo.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/DeploymentInfo.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeploymentInfo.java	11 Aug 2003 17:59:10 -0000	1.2
  +++ DeploymentInfo.java	18 Aug 2003 22:14:26 -0000	1.3
  @@ -62,12 +62,14 @@
   import java.util.Set;
   import javax.management.ObjectName;
   
  +import org.apache.geronimo.common.AbstractStateManageable;
  +
   /**
    *
    *
    * @version $Revision$ $Date$
    */
  -public class DeploymentInfo implements DeploymentInfoMBean {
  +public class DeploymentInfo extends AbstractStateManageable implements DeploymentInfoMBean {
       private final URL url;
       private final ObjectName name;
       private final ObjectName parent;
  @@ -77,6 +79,12 @@
           this.name = name;
           this.parent = parent;
           this.url = url;
  +    }
  +
  +    protected void doStart() throws Exception {
  +    }
  +
  +    protected void doStop() throws Exception {
       }
   
       public URL getURL() {
  
  
  
  1.2       +4 -2      incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/DeploymentInfoMBean.java
  
  Index: DeploymentInfoMBean.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/DeploymentInfoMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DeploymentInfoMBean.java	11 Aug 2003 17:59:10 -0000	1.1
  +++ DeploymentInfoMBean.java	18 Aug 2003 22:14:26 -0000	1.2
  @@ -59,12 +59,14 @@
   import java.util.Collection;
   import javax.management.ObjectName;
   
  +import org.apache.geronimo.common.StateManageable;
  +
   /**
    *
    *
    * @version $Revision$ $Date$
    */
  -public interface DeploymentInfoMBean {
  +public interface DeploymentInfoMBean extends StateManageable {
       URL getURL();
   
       ObjectName getParent();