Package org.jboss.deployers.spi.attachments

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


      if (context == null)
         throw new IllegalArgumentException("Null context");

      MutableAttachments mutable;
     
      Attachments attachments = context.getPredeterminedManagedObjects();

      // Nothing predetermined yet
      if (attachments == null)
      {
         mutable = AttachmentsFactory.createMutableAttachments();
         context.setPredeterminedManagedObjects(mutable);
      }
      // Some predetermined but needs to be made mutable
      else if (attachments instanceof MutableAttachments == false)
      {
         mutable = AttachmentsFactory.createMutableAttachments();
         Map<String, Object> map = attachments.getAttachments();
         if (map != null)
            mutable.setAttachments(map);
         context.setPredeterminedManagedObjects(mutable);
      }
      else
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

      if (context == null)
         throw new IllegalArgumentException("Null context");

      MutableAttachments mutable;
     
      Attachments attachments = context.getPredeterminedManagedObjects();

      // Nothing predetermined yet
      if (attachments == null)
      {
         mutable = AttachmentsFactory.createMutableAttachments();;
         context.setPredeterminedManagedObjects(mutable);
      }
      // Some predetermined but needs to be made mutable
      else if (attachments instanceof MutableAttachments == false)
      {
         mutable = AttachmentsFactory.createMutableAttachments();
         Map<String, Object> map = attachments.getAttachments();
         if (map != null)
            mutable.setAttachments(map);
         context.setPredeterminedManagedObjects(mutable);
      }
      else
View Full Code Here

               applyContextInfo(childContext, child);
              
               // Child must be added after context info is applied for correct sorting
               context.addChild(childContext);

               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

               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

               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.