Package org.jboss.deployers.structure.spi

Examples of org.jboss.deployers.structure.spi.DeploymentUnit


         return delegate.isTopLevel();
      }

      public DeploymentUnit getTopLevel()
      {
         DeploymentUnit top = delegate.getTopLevel();
         return wrap(top);
      }
View Full Code Here


         return wrap(top);
      }

      public DeploymentUnit getParent()
      {
         DeploymentUnit parent = delegate.getParent();
         return wrap(parent);
      }
View Full Code Here

   }

   public void testEar() throws Exception
   {
      VirtualFile ear = createBasicEar();
      DeploymentUnit earDU = assertDeploy(ear);
      try
      {
         assertClassLoading(true, earDU);

         DeploymentUnit jarDU = assertChild(earDU, "ejbs.jar");
         assertWBInterceptor(jarDU);

         DeploymentUnit webDU = assertChild(earDU, "simple.war");
         assertWBListener(webDU);
      }
      finally
      {
         undeploy(earDU);
View Full Code Here

   {
      VirtualFile topLevel = VFS.getChild("ejbs.jar");
      createAssembledDirectory(topLevel)
         .addPath("/weld/" + type + "/ejb");

      DeploymentUnit topDU = assertDeploy(topLevel);
      try
      {
         assertClassLoading(testCL, topDU);
         assertWBInterceptor(topDU);
      }
View Full Code Here

   {
      VirtualFile topLevel = VFS.getChild("web.war");
      createAssembledDirectory(topLevel)
         .addPath("/weld/" + type + "/web");

      DeploymentUnit topDU = assertDeploy(topLevel);
      try
      {
         if (testCL)
            assertClassLoading(testCL, topDU);
         if (testListner)
View Full Code Here

    * @param deploymentUnit
    * @return vfs root
    */
   private UnifiedVirtualFile getUnifiedVirtualFile(final DeploymentUnit deploymentUnit)
   {
      DeploymentUnit tempDeploymentUnit = deploymentUnit;
      while (tempDeploymentUnit.isComponent())
         tempDeploymentUnit = tempDeploymentUnit.getParent();

      if (tempDeploymentUnit instanceof VFSDeploymentUnit)
      {
         VFSDeploymentUnit vdu = (VFSDeploymentUnit) tempDeploymentUnit;
         return new VirtualFileAdaptor(vdu.getRoot());
View Full Code Here

      log.debug("AbstractWebContainer.parseWebAppDescriptors, End");
   }

   protected void processEncReferences(WebApplication webApp, Context envCtx) throws ClassNotFoundException, NamingException
   {
      DeploymentUnit unit = webApp.getDeploymentUnit();
      JBossWebMetaData metaData = webApp.getMetaData();
      EnvironmentEntriesMetaData envEntries = metaData.getEnvironmentEntries();
      log.debug("addEnvEntries");
      addEnvEntries(envEntries, envCtx);
      ResourceEnvironmentReferencesMetaData resourceEnvRefs = metaData.getResourceEnvironmentReferences();
View Full Code Here

      // Override with meta data (JBossWebMetaData)
      // Create a merged view
      JBossWebMetaData mergedMetaData = new JBossWebMetaData();
      mergedMetaData.merge(metaData, specMetaData);
      // Incorporate any ear level overrides
      DeploymentUnit topUnit = unit.getTopLevel();
      if(topUnit != null && topUnit.getAttachment(JBossAppMetaData.class) != null)
      {
         JBossAppMetaData earMetaData = topUnit.getAttachment(JBossAppMetaData.class);
         // Security domain
         String securityDomain = earMetaData.getSecurityDomain();
         if(securityDomain != null && mergedMetaData.getSecurityDomain() == null)
            mergedMetaData.setSecurityDomain(securityDomain);
         //Security Roles
View Full Code Here

      mainDeployer.addDeployment(deployment1);
      mainDeployer.addDeployment(deployment2);
      mainDeployer.process();
      try
      {
         DeploymentUnit du1 = getMainDeployerStructure().getDeploymentUnit(deployment1.getName());
         assertLoadClass(inFst, du1.getClassLoader());
         assertClassNotFound(inSnd, du1);

         DeploymentUnit du2 = getMainDeployerStructure().getDeploymentUnit(deployment2.getName());
         assertLoadClass(inSnd, du2.getClassLoader());
         assertClassNotFound(inFst, du2);
      }
      finally
      {
         mainDeployer.removeDeployment(deployment2);
View Full Code Here

      this.name = name;

      // FIXME all this deployment unit access should be replaced with deployers processing updating the metadata
      // Ask the ejb deployer whether we are call by value
      Boolean flag = unit.getAttachment("EJB.callByValue", Boolean.class);
      DeploymentUnit temp = unit;
      while (flag == null && temp != null)
      {
         // Ask the ear deployer whether we are call by value
         flag = temp.getAttachment("EAR.callByValue", Boolean.class);
         if (flag != null)
            break;
         temp = temp.getParent();
      }
      if (flag != null)
         callByValue = flag.booleanValue();

      // Set the unauthenticated identity on the metadata if absent
View Full Code Here

TOP

Related Classes of org.jboss.deployers.structure.spi.DeploymentUnit

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.