User: mnf999
Date: 02/01/20 06:36:30
Modified: src/main/org/jboss/deployment DeployerMBean.java
DeployerMBeanSupport.java
Removed: src/main/org/jboss/deployment ServiceDeployer.java
ServiceDeployerMBean.java
Log:
New deployers
Revision Changes Path
1.7 +70 -55 jboss/src/main/org/jboss/deployment/DeployerMBean.java
Index: DeployerMBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/DeployerMBean.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DeployerMBean.java 2001/12/10 01:51:26 1.6
+++ DeployerMBean.java 2002/01/20 14:36:30 1.7
@@ -1,9 +1,9 @@
/*
- * JBoss, the OpenSource J2EE webOS
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
+* JBoss, the OpenSource J2EE webOS
+*
+* Distributable under LGPL license.
+* See terms of license at gnu.org.
+*/
package org.jboss.deployment;
@@ -14,59 +14,74 @@
import org.jboss.system.ServiceMBean;
/**
- * The common interface for services that deploy application
- * components.
- *
- * @author <a href="mailto:[EMAIL PROTECTED]">Toby Allsopp</a>
- * @version $Revision: 1.6 $
- */
+* The common interface for services that deploy application
+* components.
+*
+* This is to be called by the MainDeployer. Use the MainDeployer to deploy
application
+*
+* @author <a href="mailto:[EMAIL PROTECTED]">Toby Allsopp</a>
+* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
+* @version $Revision: 1.7 $
+*
+* <p><b>20011225 marc fleury:</b>
+* <ul>
+* <li>Deployer Unification, the main deployer is the point of entry this
interface
+* is reserved for "sub-deployers" and the String URL-> DeploymentInfo
+* </ul>
+*/
public interface DeployerMBean
- extends ServiceMBean
+extends ServiceMBean
{
/**
- * Provides a filter that decides whether a file can be deployed by
- * this deployer based on the filename. This is for the benefit of
- * the {@link org.jboss.deployer.AutoDeployer} service.
- *
- * @return a <tt>FilenameFilter</tt> that only
- * <tt>accept</tt>s files with names that can be
- * deployed by this deployer
- */
- FilenameFilter getDeployableFilter();
-
- /**
- * Deploy a given URL.
- *
- * @param url The URL to deploy.
- *
- * @throws MalformedURLException Invalid URL
- * @throws IOException Failed to fetch content
- * @throws DeploymentException Failed to deploy
- */
- void deploy(String url)
- throws MalformedURLException, IOException, DeploymentException;
-
+ * Provides a filter that decides whether a file can be deployed by
+ * this deployer based on the filename. This is for the benefit of
+ * the {@link org.jboss.deployer.AutoDeployer} service.
+ *
+ * @return a <tt>FilenameFilter</tt> that only
+ * <tt>accept</tt>s files with names that can be
+ * deployed by this deployer
+ */
+ public boolean accepts(DeploymentInfo sdi);
+
+
+
+ /*
+ * Init a deployment
+ *
+ * parse the XML MetaData. Init and deploy are separate steps allowing for
subDeployment
+ * in between.
+ *
+ * @param url The URL to deploy.
+ *
+ * @throws MalformedURLException Invalid URL
+ * @throws IOException Failed to fetch content
+ * @throws DeploymentException Failed to deploy
+ */
+ public void init(DeploymentInfo sdi)
+ throws DeploymentException;
+
+
/**
- * Undeploy a given URL.
- *
- * @param url The URL to undeploy.
- *
- * @throws MalformedURLException Invalid URL
- * @throws IOException Failed to fetch content
- * @throws DeploymentException Failed to undeploy
- */
- void undeploy(String url)
- throws MalformedURLException, IOException, DeploymentException;
-
+ * Deploy a given URL.
+ *
+ * @param url The URL to deploy.
+ *
+ * @throws MalformedURLException Invalid URL
+ * @throws IOException Failed to fetch content
+ * @throws DeploymentException Failed to deploy
+ */
+ public void deploy(DeploymentInfo sdi)
+ throws DeploymentException;
+
/**
- * Check if a URL corresponds to a deployment.
- *
- * @param url The URL to check.
- * @return True if the URL corresponds to a deployment.
- *
- * @throws MalformedURLException Invalid URL
- * @throws DeploymentException Failed to undeploy
- */
- boolean isDeployed(String url)
- throws MalformedURLException, DeploymentException;
+ * Undeploy a given URL.
+ *
+ * @param url The URL to undeploy.
+ *
+ * @throws MalformedURLException Invalid URL
+ * @throws IOException Failed to fetch content
+ * @throws DeploymentException Failed to undeploy
+ */
+ public void undeploy(DeploymentInfo sdi)
+ throws DeploymentException;
}
1.17 +2 -2 jboss/src/main/org/jboss/deployment/DeployerMBeanSupport.java
Index: DeployerMBeanSupport.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/deployment/DeployerMBeanSupport.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- DeployerMBeanSupport.java 2002/01/03 04:00:57 1.16
+++ DeployerMBeanSupport.java 2002/01/20 14:36:30 1.17
@@ -27,7 +27,7 @@
import org.jboss.deployment.DeploymentException;
import org.jboss.logging.Logger;
import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.system.URLClassLoader;
+import org.jboss.system.UnifiedClassLoader;
import java.util.List;
/**
@@ -36,7 +36,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Toby Allsopp</a>
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
*
* <p><b>Revisions:</b>
*
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development