Package org.jboss.deployers.structure.spi

Examples of org.jboss.deployers.structure.spi.DeploymentUnit.addAttachment()


         DeploymentUnit parent = unit.getParent();
         if (parent == null)
            throw new IllegalArgumentException("Parent unit should not be null as this unit should be component: " + unit);

         parent.addAttachment(BeanMetaData.class.getName() + "." + name, builder.getBeanMetaData(), BeanMetaData.class);
      }
      catch(NamingException e)
      {
         throw new DeploymentException(e);
      }
View Full Code Here


      try
      {
         webMetaDataModifier.modifyMetaData(dep);
     
         // Attaching it to the DeploymentUnit will cause a new webapp deployment
         unit.addAttachment(JBossWebMetaData.class, jbwmd);
         unit.addAttachment(HttpSpec.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);

      }
      catch (Exception ex)
      {
View Full Code Here

      {
         webMetaDataModifier.modifyMetaData(dep);
     
         // Attaching it to the DeploymentUnit will cause a new webapp deployment
         unit.addAttachment(JBossWebMetaData.class, jbwmd);
         unit.addAttachment(HttpSpec.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);

      }
      catch (Exception ex)
      {
         WSFDeploymentException.rethrow(ex);
View Full Code Here

    * @return newly created component deployment unit
    */
   protected DeploymentUnit addComponent(DeploymentUnit unit, T attachment)
   {
      DeploymentUnit component = unit.addComponent(getComponentName(attachment));
      component.addAttachment(getAttachmentName(attachment), attachment);
      return component;
   }

   /**
    * Remove component.
View Full Code Here

            {
               throw new RuntimeException("Exception generating JACC perms:",e);
            }
        
            // Attaching it to the DeploymentUnit will cause a new webapp deployment
            unit.addAttachment(JBossWebMetaData.class, jbwmd);
            unit.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
         }
         catch (Exception ex)
         {
            WSFDeploymentException.rethrow(ex);
View Full Code Here

               throw new RuntimeException("Exception generating JACC perms:",e);
            }
        
            // Attaching it to the DeploymentUnit will cause a new webapp deployment
            unit.addAttachment(JBossWebMetaData.class, jbwmd);
            unit.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
         }
         catch (Exception ex)
         {
            WSFDeploymentException.rethrow(ex);
         }
View Full Code Here

   protected static void addServiceComponent(DeploymentUnit unit, ServiceMetaData service)
   {
      ObjectName objectName = service.getObjectName();
      String name = objectName.getCanonicalName();
      DeploymentUnit component = unit.addComponent(name);
      component.addAttachment(ServiceMetaData.class.getName(), service);
   }

   protected static void removeServiceComponent(DeploymentUnit unit, ServiceMetaData service)
   {
      ObjectName objectName = service.getObjectName();
View Full Code Here

   }

   protected static void addBeanComponent(DeploymentUnit unit, BeanMetaData bean)
   {
      DeploymentUnit component = unit.addComponent(bean.getName());
      component.addAttachment(BeanMetaData.class.getName(), bean);
   }

   protected static void removeBeanComponent(DeploymentUnit unit, BeanMetaData bean)
   {
      unit.removeComponent(bean.getName());
View Full Code Here

   }

   protected static void addAliasComponent(DeploymentUnit unit, NamedAliasMetaData alias)
   {
      DeploymentUnit component = unit.addComponent(alias.getAliasValue().toString());
      component.addAttachment(NamedAliasMetaData.class.getName(), alias);
   }

   protected static void removeAliasComponent(DeploymentUnit unit, NamedAliasMetaData alias)
   {
      unit.removeComponent(alias.getAliasValue().toString());
View Full Code Here

      Boolean flag = top.getAttachment(WEB_BEANS_DEPLOYMENT_FLAG, Boolean.class);
      if (flag != null)
         return flag;

      flag = searchForWebBeans(top);
      top.addAttachment(WEB_BEANS_DEPLOYMENT_FLAG, flag, Boolean.class);

      return flag;
   }

   /**
 
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.