donaldp 2002/07/30 05:21:00
Modified: src/java/org/apache/avalon/phoenix/components/deployer
DefaultDeployer.java
Log:
Annotate class with attributes indicating it is managed and giving descriptions to
attributes/operations.
Submitted by: Huw Roberts <[EMAIL PROTECTED]>
Revision Changes Path
1.49 +10 -9
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java
Index: DefaultDeployer.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/deployer/DefaultDeployer.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- DefaultDeployer.java 26 Jul 2002 20:03:00 -0000 1.48
+++ DefaultDeployer.java 30 Jul 2002 12:21:00 -0000 1.49
@@ -14,6 +14,7 @@
import java.util.Hashtable;
import java.util.Map;
import java.util.Set;
+import java.util.Arrays;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.avalon.framework.activity.Disposable;
@@ -53,6 +54,8 @@
/**
* Deploy .sar files into a kernel using this class.
*
+ * @phoenix:mx-topic name="Deployer"
+ *
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
*/
public class DefaultDeployer
@@ -63,21 +66,13 @@
ResourceManager.getPackageResources( DefaultDeployer.class );
private final Assembler m_assembler = new Assembler();
-
private final SarVerifier m_verifier = new SarVerifier();
-
private final Installer m_installer = new Installer();
-
private final Map m_installations = new Hashtable();
-
private LogManager m_logManager;
-
private Kernel m_kernel;
-
private ConfigurationRepository m_repository;
-
private ClassLoaderManager m_classLoaderManager;
-
private ConfigurationValidator m_validator;
/**
@@ -191,6 +186,9 @@
/**
* Undeploy an application.
*
+ * @phoenix:mx-operation
+ * @phoenix:mx-description Undeploy an application.
+ *
* @param name the name of deployment
* @throws DeploymentException if an error occurs
*/
@@ -230,6 +228,9 @@
/**
* Deploy an application from an installation.
*
+ * @phoenix:mx-operation
+ * @phoenix:mx-description Deploy an application from an installation.
+ *
* @param name the name of application
* @param sarURL the location to deploy from represented as String
* @throws DeploymentException if an error occurs
@@ -315,7 +316,7 @@
final String message =
REZ.getString( "deploy.notice.sar.add",
metaData.getName(),
- installation.getClassPath() );
+ Arrays.asList( installation.getClassPath() ) );
getLogger().debug( message );
success = true;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>