User: sylvain
Date: 00/05/30 19:42:03
Modified: src/java/org/ejboss/deployment Deployer.java
Log:
factoring all the "deploy" methods. The method which actually does something is
deploy(File jarFile, String owner, String application)
deploy(File jarFile) simply calls deploy(File jarFile, "defaultOwner",
"defaultApplication")
Revision Changes Path
1.10 +8 -24 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.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Deployer.java 2000/05/26 22:36:53 1.9
+++ Deployer.java 2000/05/31 02:42:03 1.10
@@ -30,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.9 2000/05/26 22:36:53 fleury Exp $
+ * @version $Id: Deployer.java,v 1.10 2000/05/31 02:42:03 sylvain Exp $
* @author Michael G. Mullis
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @since Ejboss 0.5
@@ -83,7 +83,12 @@
*
* @since EJBoss 0.9
*/
- public Collection deploy(File jarFile) throws DeploymentException {
+ public Collection deploy(File jarFile) throws DeploymentException
+ {
+ return deploy(jarFile, "defaultOwner", "defaultApplication" );
+ }
+
+ public Collection deploy(File jarFile, String owner, String application) throws
DeploymentException {
try {
@@ -112,7 +117,7 @@
ejbJar.setClientJar(jarFile.toURL().toString());
- return deploy(ejbJar);
+ return deploy(ejbJar, owner, application);
}
catch (Exception e) {
@@ -123,27 +128,6 @@
}
}
-
- /*
- * deploy(EjbJar)
- *
- * We do not need to do any compilation just deploy (1.3 specific)
- *
- * @since EJBoss 0.9
- */
- public Collection deploy(EjbJar ejbJar) throws DeploymentException {
-
- // Actual deployment with a container
-
- return ContainerFactory.getContainerFactory().initContainers(ejbJar);
-
- //Tracer.trace(TracerConstants.LOG_INFO, "deploy", "Jar File "+
- // ejbJar.getClientJar()+
- // " is deployed");
-
-
-
- }
/*
* deploy(EjbJar, owner, application)