User: starksm
Date: 01/09/30 15:22:57
Modified: src/main/org/jboss/deployment Tag: Branch_2_4
DeployerMBeanSupport.java
Log:
Add getDeployments() method
Revision Changes Path
No revision
No revision
1.1.6.1 +20 -1 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.1
retrieving revision 1.1.6.1
diff -u -r1.1 -r1.1.6.1
--- DeployerMBeanSupport.java 2001/01/15 05:06:54 1.1
+++ DeployerMBeanSupport.java 2001/09/30 22:22:57 1.1.6.1
@@ -19,7 +19,7 @@
* <description>
*
* @author Toby Allsopp ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.1.6.1 $
*/
public abstract class DeployerMBeanSupport
extends ServiceMBeanSupport
@@ -129,6 +129,25 @@
protected Object getInfo(URL url)
{
return deployments.get(url);
+ }
+
+ /**
+ * Returns the deployments that have been deployed by this
+ * deployer. The <code>Map</code> returned from this method is a
+ * snapshot of the deployments at the time the method is called and
+ * will not reflect any subsequent deployments or undeployments.
+ *
+ * @return a mapping from <code>URL</code> to
+ * <code>DeploymentInfo</code>
+ */
+ protected Map getDeployments()
+ {
+ Map ret = new HashMap();
+ synchronized (deployments)
+ {
+ ret.putAll(deployments);
+ }
+ return ret;
}
/**
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development