Index: src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java
===================================================================
RCS file: /home/cvspublic/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java,v
retrieving revision 1.19
diff -u -r1.19 DefaultDeployer.java
--- src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java	16 Mar 2002 00:11:54 -0000	1.19
+++ src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java	25 Mar 2002 15:45:13 -0000
@@ -9,6 +9,7 @@
 
 import java.io.File;
 import java.net.URL;
+import java.net.MalformedURLException;
 import org.apache.avalon.excalibur.i18n.ResourceManager;
 import org.apache.avalon.excalibur.i18n.Resources;
 import org.apache.avalon.framework.activity.Initializable;
@@ -22,6 +23,7 @@
 import org.apache.avalon.phoenix.interfaces.ClassLoaderManager;
 import org.apache.avalon.phoenix.interfaces.ConfigurationRepository;
 import org.apache.avalon.phoenix.interfaces.Deployer;
+import org.apache.avalon.phoenix.interfaces.DeployerMBean;
 import org.apache.avalon.phoenix.interfaces.DeploymentException;
 import org.apache.avalon.phoenix.interfaces.DeploymentRecorder;
 import org.apache.avalon.phoenix.interfaces.Kernel;
@@ -44,7 +46,7 @@
  */
 public class DefaultDeployer
     extends AbstractLogEnabled
-    implements Deployer, Composable, Initializable
+    implements Deployer, Composable, Initializable, DeployerMBean
 {
     private static final Resources REZ =
         ResourceManager.getPackageResources( DefaultDeployer.class );
@@ -116,6 +118,28 @@
             throw new DeploymentException( e.getMessage(), e );
         }
     }
+    
+    
+    /**
+     * Deploy an application from an installation.
+     *
+     * @param name the name of application
+     * @param sarURL the location to deploy from represented as String
+     * @exception DeploymentException if an error occurs
+     */
+    public void deploy( final String name, final String sarURL )
+        throws DeploymentException
+    {
+        try 
+        {
+	        deploy( name, new URL( sarURL ) );
+        }
+        catch( MalformedURLException mue )
+        {
+            throw new DeploymentException( mue.getMessage(), mue );
+        }
+    }
+
 
     /**
      * Deploy an application from an installation.
Index: src/java/org/apache/avalon/phoenix/components/manager/DefaultManager.java
===================================================================
RCS file: /home/cvspublic/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/DefaultManager.java,v
retrieving revision 1.15
diff -u -r1.15 DefaultManager.java
--- src/java/org/apache/avalon/phoenix/components/manager/DefaultManager.java	25 Mar 2002 08:28:09 -0000	1.15
+++ src/java/org/apache/avalon/phoenix/components/manager/DefaultManager.java	25 Mar 2002 15:45:14 -0000
@@ -30,6 +30,7 @@
 import org.apache.avalon.phoenix.components.manager.rmiadaptor.RMIAdaptorImpl;
 import org.apache.avalon.phoenix.interfaces.ConfigurationRepository;
 import org.apache.avalon.phoenix.interfaces.Deployer;
+import org.apache.avalon.phoenix.interfaces.DeployerMBean;
 import org.apache.avalon.phoenix.interfaces.Embeddor;
 import org.apache.avalon.phoenix.interfaces.EmbeddorMBean;
 import org.apache.avalon.phoenix.interfaces.ExtensionManagerMBean;
@@ -135,7 +136,7 @@
         register( "Kernel", m_kernel, new Class[]{KernelMBean.class} );
         register( "ExtensionManager", m_extensionManager, new Class[]{ExtensionManagerMBean.class} );
         register( "Embeddor", m_embeddor, new Class[]{EmbeddorMBean.class} );
-        register( "Deployer", m_deployer, new Class[]{Deployer.class} );
+        register( "Deployer", m_deployer, new Class[]{DeployerMBean.class} );
         register( "LogManager", m_logManager );
         register( "ConfigurationRepository", m_repository );
     }
Index: src/java/org/apache/avalon/phoenix/interfaces/DeployerMBean.java
===================================================================
RCS file: src/java/org/apache/avalon/phoenix/interfaces/DeployerMBean.java
diff -N src/java/org/apache/avalon/phoenix/interfaces/DeployerMBean.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/java/org/apache/avalon/phoenix/interfaces/DeployerMBean.java	25 Mar 2002 15:45:14 -0000
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) The Apache Software Foundation. All rights reserved.
+ *
+ * This software is published under the terms of the Apache Software License
+ * version 1.1, a copy of which has been included with this distribution in
+ * the LICENSE.txt file.
+ */
+package org.apache.avalon.phoenix.interfaces;
+
+import java.net.URL;
+import org.apache.avalon.framework.component.Component;
+
+/**
+ * MBean Interface for the Deployer
+ * to use the deploy feature in the HmtlAdaptor
+ *
+ * @author <a href="mailto:bauer@denic.de">Joerg Bauer</a>
+ */
+public interface DeployerMBean
+{
+    String ROLE = Deployer.class.getName();
+
+    /**
+     * Deploy an installation.
+     *
+     * @param name the name of deployment
+     * @param location the installation to deploy
+     * @exception DeploymentException if an error occurs
+     */
+    void deploy( String name, String sarURL )
+        throws DeploymentException;
+
+    /**
+     * undeploy a resource from a location.
+     *
+     * @param name the name of deployment
+     * @exception DeploymentException if an error occurs
+     */
+    void undeploy( String name )
+        throws DeploymentException;
+
+}
