Package org.jboss.deployers.spi.attachments

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


/*     */   {
/* 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
View Full Code Here


   {
      StructureBuilder builder = getStructureBuilder();
      if (builder == null)
         throw new IllegalStateException("No structure builder has been configured");
     
      Attachments attachments = deployment.getPredeterminedManagedObjects();
      StructureMetaData structureMetaData = attachments.getAttachment(StructureMetaData.class);
      if (structureMetaData == null)
      {
         structureMetaData = StructureMetaDataFactory.createStructureMetaData();
         try
         {
View Full Code Here

               context.addChild(childContext);
               childContext.setParent(context);

               applyContextInfo(childContext, child);

               Attachments attachments = child.getPredeterminedManagedObjects();
               if (attachments != null)
               {
                  StructureMetaData childStructure = attachments.getAttachment(StructureMetaData.class);
                  if (childStructure != null)
                     populateContext(childContext, childStructure);
               }
            }
         }
View Full Code Here

    * @param contextInfo the contextInfo
    * @throws Exception for any error
    */
   protected void applyContextInfo(DeploymentContext context, ContextInfo contextInfo) throws Exception
   {
      Attachments attachments = contextInfo.getPredeterminedManagedObjects();
      if (attachments != null)
         context.setPredeterminedManagedObjects(attachments);

      context.setRelativeOrder(contextInfo.getRelativeOrder());
      applyComparator(context, contextInfo);
View Full Code Here

TOP

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

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.