User: fleury
Date: 00/05/24 16:31:30
Modified: src/java/org/ejboss/deployment Deployer.java
Log:
We return a full collection of names of the beans from the deployer
Revision Changes Path
1.7 +12 -8 ejboss/src/java/org/ejboss/deployment/Deployer.java
Index: Deployer.java
===================================================================
RCS file: /products/cvs/ejboss/ejboss/src/java/org/ejboss/deployment/Deployer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Deployer.java 2000/03/23 03:04:17 1.6
+++ Deployer.java 2000/05/24 23:31:30 1.7
@@ -11,6 +11,7 @@
import java.io.File;
import java.util.Iterator;
import java.util.jar.JarException;
+import java.util.Collection;
import java.beans.beancontext.BeanContextServicesSupport;
import java.beans.Beans;
import org.ejboss.container.ContainerFactory;
@@ -29,7 +30,7 @@
* MF FIXME: should follow the 1.2/1.3 pattern (this class is specific to 1.3)
*
*
- * @version $Id: Deployer.java,v 1.6 2000/03/23 03:04:17 fleury Exp $
+ * @version $Id: Deployer.java,v 1.7 2000/05/24 23:31:30 fleury Exp $
* @author Michael G. Mullis
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @since Ejboss 0.5
@@ -82,7 +83,7 @@
*
* @since EJBoss 0.9
*/
- public void deploy(File jarFile) throws DeploymentException {
+ public Collection deploy(File jarFile) throws DeploymentException {
try {
@@ -111,7 +112,7 @@
ejbJar.setClientJar(jarFile.toURL().toString());
- deploy(ejbJar);
+ return deploy(ejbJar);
}
catch (Exception e) {
@@ -130,15 +131,18 @@
*
* @since EJBoss 0.9
*/
- public void deploy(EjbJar ejbJar) throws DeploymentException {
+ public Collection deploy(EjbJar ejbJar) throws DeploymentException {
// Actual deployment with a container
- ContainerFactory.getContainerFactory().initContainers(ejbJar);
+ return ContainerFactory.getContainerFactory().initContainers(ejbJar);
- Tracer.trace(TracerConstants.LOG_INFO, "deploy", "Jar File "+
- ejbJar.getClientJar()+
- " is deployed");
+ //Tracer.trace(TracerConstants.LOG_INFO, "deploy", "Jar File "+
+ // ejbJar.getClientJar()+
+ // " is deployed");
+
+
+
}
}