Package org.jboss.deployers.spi.attachments

Examples of org.jboss.deployers.spi.attachments.MutableAttachments


/* 172 */     if (context == null) {
/* 173 */       throw new IllegalArgumentException("Null context");
/*     */     }
/*     */
/* 177 */     Attachments attachments = context.getPredeterminedManagedObjects();
/*     */     MutableAttachments mutable;
/* 180 */     if (attachments == null)
/*     */     {
/* 182 */       MutableAttachments mutable = AttachmentsFactory.createMutableAttachments();
/* 183 */       context.setPredeterminedManagedObjects(mutable);
/*     */     }
/* 186 */     else if (!(attachments instanceof MutableAttachments))
/*     */     {
/* 188 */       MutableAttachments mutable = AttachmentsFactory.createMutableAttachments();
/* 189 */       Map map = attachments.getAttachments();
/* 190 */       if (map != null)
/* 191 */         mutable.setAttachments(map);
/* 192 */       context.setPredeterminedManagedObjects(mutable);
/*     */     }
/*     */     else
/*     */     {
/* 196 */       mutable = (MutableAttachments)attachments;
/*     */     }
/*     */
/* 199 */     StructureMetaData structure = (StructureMetaData)mutable.getAttachment(StructureMetaData.class);
/*     */
/* 201 */     if (structure == null)
/*     */     {
/* 203 */       structure = StructureMetaDataFactory.createStructureMetaData();
/* 204 */       mutable.addAttachment(StructureMetaData.class, structure);
/*     */     }
/* 206 */     return structure;
/*     */   }
View Full Code Here


         // copy the modification type information
         parentContextInfo.setModificationType(recognised.getModificationType());
         StructureMetaData structureMetaData = parentContext.getMetaData();
         structureMetaData.addContext(parentContextInfo);
         MutableAttachments attachments = (MutableAttachments) parentContextInfo.getPredeterminedManagedObjects();
         attachments.addAttachment(StructureMetaData.class, structure);
      }
      return result;
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.attachments.MutableAttachments

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.