Package org.jboss.deployers.spi.attachments

Examples of org.jboss.deployers.spi.attachments.MutableAttachments.addAttachment()


      Map<String, Object> attachments = deployment.getAttachments();
      if(attachments != null && attachments.isEmpty() == false)
      {
         MutableAttachments predetermined = AttachmentsFactory.createMutableAttachments();
         for(String name : attachments.keySet())
            predetermined.addAttachment(name, attachments.get(name));
         mcDeployment.setPredeterminedManagedObjects(predetermined);
      }
      return mcDeployment;
   }
  
View Full Code Here


         else
            parentContext = StructureMetaDataFactory.createContextInfo(relativePath, metaDataPath, recognised.getClassPath());
        
         structureMetaData.addContext(parentContext);
         MutableAttachments attachments = (MutableAttachments) parentContext.getPredeterminedManagedObjects();
         attachments.addAttachment(StructureMetaData.class, structure);
      }
      return result;
   }
  
   /**
 
View Full Code Here

      StructureMetaData structure = mutable.getAttachment(StructureMetaData.class);
      // No previous structure
      if (structure == null)
      {
         structure = StructureMetaDataFactory.createStructureMetaData();
         mutable.addAttachment(StructureMetaData.class, structure);
      }
      return structure;
   }
}
View Full Code Here

         // copy the modification type information
         parentContext.setModificationType(recognised.getModificationType());
         structureMetaData.addContext(parentContext);
         MutableAttachments attachments = (MutableAttachments) parentContext.getPredeterminedManagedObjects();
         attachments.addAttachment(StructureMetaData.class, structure);
      }
      return result;
   }
  
   public boolean determineStructure(VirtualFile file, StructureContext parentContext) throws DeploymentException
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

/*     */       else {
/* 156 */         parentContext = StructureMetaDataFactory.createContextInfo(relativePath, metaDataPath, recognised.getClassPath());
/*     */       }
/* 158 */       structureMetaData.addContext(parentContext);
/* 159 */       MutableAttachments attachments = (MutableAttachments)parentContext.getPredeterminedManagedObjects();
/* 160 */       attachments.addAttachment(StructureMetaData.class, structure);
/*     */     }
/* 162 */     return result;
/*     */   }
/*     */
/*     */   protected boolean doDetermineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData structureMetaData)
View Full Code Here

/* 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
Copyright © 2018 www.massapi.com. 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.