User: schulze 
  Date: 00/10/02 17:13:33

  Modified:    src/main/org/jboss/ejb ContainerFactory.java
                        ContainerFactoryMBean.java
  Log:
  isDeployed (URL) method added
  
  Revision  Changes    Path
  1.47      +25 -1     jboss/src/main/org/jboss/ejb/ContainerFactory.java
  
  Index: ContainerFactory.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- ContainerFactory.java     2000/10/02 15:39:03     1.46
  +++ ContainerFactory.java     2000/10/03 00:13:32     1.47
  @@ -76,7 +76,7 @@
   *   @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]">Sebastien Alborini</a>
   *
  -*   @version $Revision: 1.46 $
  +*   @version $Revision: 1.47 $
   */
   public class ContainerFactory
       extends org.jboss.util.ServiceMBeanSupport
  @@ -702,6 +702,30 @@
   
          Log.unsetLog();
       }
  +
  +    /**
  +    *        is the aplication with this url deployed
  +    *
  +    * @param   url
  +    * @exception   MalformedURLException
  +    */
  +     public boolean isDeployed(String url)
  +        throws MalformedURLException
  +     {
  +               return isDeployed (new URL (url));
  +     }
  +
  +    /**
  +    *   check if the application with this url is deployed
  +    *
  +    * @param   url
  +    * @return true if deployed
  +    */
  +    public boolean isDeployed (URL url)
  +    {
  +      return (deployments.get(url) != null);
  +    }
  +
   
       // Protected -----------------------------------------------------
   }
  
  
  
  1.5       +11 -1     jboss/src/main/org/jboss/ejb/ContainerFactoryMBean.java
  
  Index: ContainerFactoryMBean.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/ContainerFactoryMBean.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ContainerFactoryMBean.java        2000/07/06 20:36:45     1.4
  +++ ContainerFactoryMBean.java        2000/10/03 00:13:32     1.5
  @@ -13,7 +13,7 @@
    *      
    *   @see ContainerFactory
    *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.4 $
  + *   @version $Revision: 1.5 $
    */
   public interface ContainerFactoryMBean
        extends org.jboss.util.ServiceMBean
  @@ -57,5 +57,15 @@
       * @return   true if verifier is enabled; false otherwise
       */
      public boolean getVerifyDeployments();
  +
  +     /**
  +      *      is the aplication with this url deployed
  +      *
  +      * @param   url
  +      * @exception   MalformedURLException
  +      */
  +   public boolean isDeployed(String url)
  +      throws MalformedURLException;
  +
   }
   
  
  
  

Reply via email to