[jboss-cvs] JBossAS SVN: r59185 - projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/attachments

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 21 02:38:42 EST 2006


Author: scott.stark at jboss.org
Date: 2006-12-21 02:38:40 -0500 (Thu, 21 Dec 2006)
New Revision: 59185

Modified:
   projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/attachments/AttachmentsImpl.java
Log:
Add a setAttachments method and set the serialVersionUID

Modified: projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/attachments/AttachmentsImpl.java
===================================================================
--- projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/attachments/AttachmentsImpl.java	2006-12-21 02:54:55 UTC (rev 59184)
+++ projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/attachments/AttachmentsImpl.java	2006-12-21 07:38:40 UTC (rev 59185)
@@ -33,6 +33,8 @@
  */
 public class AttachmentsImpl extends AbstractAttachments
 {
+   private static final long serialVersionUID = 1;
+
    /** The attachments */
    private Map<String, Object> attachments = new ConcurrentHashMap<String, Object>();
 
@@ -40,6 +42,11 @@
    {
       return Collections.unmodifiableMap(attachments);
    }
+   public void setAttachments(Map<String, Object> map)
+   {
+      attachments.clear();
+      attachments.putAll(map);
+   }
 
    public Object addAttachment(String name, Object attachment)
    {




More information about the jboss-cvs-commits mailing list