Examples of addAttachment()


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

         throw new IllegalArgumentException("Null script name.");

      BeanShellScript script = createBeanShellScript(bshScript, scriptName);
      Deployment deployment = new AbstractDeployment(scriptName);
      MutableAttachments mutableAttachments = ((MutableAttachments)deployment.getPredeterminedManagedObjects());
      mutableAttachments.addAttachment(BeanShellScript.class, script);

      deployer.addDeployment(deployment);
      deployer.process();

      return deployment.getName();
View Full Code Here

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

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

      flag = checkForWeldFiles(top, true);
      top.addAttachment(WELD_DEPLOYMENT_FLAG, flag, Boolean.class);

      return flag;
   }

   /**
 
View Full Code Here

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

      
       for (DataSourceDeploymentMetaData dataSourceDeployment : datasourceDeployments)
       {
          managedConnectionFactories.addManagedConnectionFactoryDeployment(dataSourceDeployment);
       }
       nonComponentDU.addAttachment(ManagedConnectionFactoryDeploymentGroup.class, managedConnectionFactories);
  }

 
}
View Full Code Here

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

      if(endpointMap == null)
      {
         endpointMap = new ConcurrentHashMap<String, ContainerDependencyMetaData>();
         endpointAlternateMap = new ConcurrentHashMap<String, String>();
         mapEndpoints(top, endpointMap, endpointAlternateMap);
         top.addAttachment(ENDPOINT_MAP_KEY, endpointMap, Map.class);
         top.addAttachment(ALTERNATE_MAP_KEY, endpointAlternateMap);
         DeploymentEndpointResolver resolver = new MappedDeploymentEndpointResolver(endpointMap, endpointAlternateMap, unit.getRelativePath());
         top.addAttachment(DeploymentEndpointResolver.class, resolver);
      }
View Full Code Here

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

      {
         endpointMap = new ConcurrentHashMap<String, ContainerDependencyMetaData>();
         endpointAlternateMap = new ConcurrentHashMap<String, String>();
         mapEndpoints(top, endpointMap, endpointAlternateMap);
         top.addAttachment(ENDPOINT_MAP_KEY, endpointMap, Map.class);
         top.addAttachment(ALTERNATE_MAP_KEY, endpointAlternateMap);
         DeploymentEndpointResolver resolver = new MappedDeploymentEndpointResolver(endpointMap, endpointAlternateMap, unit.getRelativePath());
         top.addAttachment(DeploymentEndpointResolver.class, resolver);
      }

      DeploymentEndpointResolver resolver = new MappedDeploymentEndpointResolver(
View Full Code Here

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

         endpointAlternateMap = new ConcurrentHashMap<String, String>();
         mapEndpoints(top, endpointMap, endpointAlternateMap);
         top.addAttachment(ENDPOINT_MAP_KEY, endpointMap, Map.class);
         top.addAttachment(ALTERNATE_MAP_KEY, endpointAlternateMap);
         DeploymentEndpointResolver resolver = new MappedDeploymentEndpointResolver(endpointMap, endpointAlternateMap, unit.getRelativePath());
         top.addAttachment(DeploymentEndpointResolver.class, resolver);
      }

      DeploymentEndpointResolver resolver = new MappedDeploymentEndpointResolver(
            endpointMap, endpointAlternateMap, unit.getRelativePath());
View Full Code Here

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

      Set<ContainerDependencyMetaData> depends = new HashSet<ContainerDependencyMetaData>();
      for(ContainerDependencyMetaData cdmd : endpointMap.values())
      {
         depends.add(cdmd);
      }
      top.addAttachment(DEPENDS_SET_KEY, depends, Set.class);

      unit.addAttachment(DeploymentEndpointResolver.class, resolver);
      dump(unit);
   }
View Full Code Here

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

      this.createWebAppDescriptor(dep, jbossWebMD);
      this.createJBossWebAppDescriptor(dep, jbossWebMD);

      dep.addAttachment(JBossWebMetaData.class, jbossWebMD);
      unit.addAttachment(JBossWebMetaData.class, jbossWebMD);
   }

   /**
    * Creates web.xml descriptor meta data.
    *
 
View Full Code Here

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

    * @param attachment the attachment
    */
   protected void addComponent(DeploymentUnit unit, T attachment)
   {
      DeploymentUnit component = unit.addComponent(getComponentName(attachment));
      component.addAttachment(getAttachmentName(attachment), attachment);
   }

   /**
    * Remove component.
    *
 
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.addAttachment()

         VFSDeploymentUnit topUnit = unit.getTopLevel();
         environment = topUnit.getAttachment(WeldDiscoveryEnvironment.class);
         if (environment == null)
         {
            environment = new WeldDiscoveryEnvironment();
            topUnit.addAttachment(WeldDiscoveryEnvironment.class, environment);
         }
      }

      try
      {
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.