Examples of DeploymentSummary


Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      JBossEnterpriseBeansMetaData beans = null;
      if(ejbMetaData != null)
      {
         if(ejbMetaData.getDeploymentSummary() == null)
         {
            DeploymentSummary deploymentSummary = getDeploymentSummary(unit);
            ejbMetaData.setDeploymentSummary(deploymentSummary);
         }
         beans = ejbMetaData.getEnterpriseBeans();
      }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

//      return jndiName;
//   }

   private static EjbDeploymentSummary getEjbDeploymentSummary(DeploymentUnit unit, JBossEnterpriseBeanMetaData beanMD)
   {
      DeploymentSummary dSummary = getDeploymentSummary(unit);
     
      EjbDeploymentSummary summary = new EjbDeploymentSummary(beanMD,dSummary);
      return summary;
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      return summary;
   }
  
   private static DeploymentSummary getDeploymentSummary(DeploymentUnit unit)
   {
      DeploymentSummary dSummary = new DeploymentSummary();
      dSummary.setDeploymentName(unit.getSimpleName());
      String baseName = unit.getTopLevel().getSimpleName();
      int dot = baseName.lastIndexOf('.');
      if(dot > 0)
      {
         baseName = baseName.substring(0, dot);
      }
      dSummary.setDeploymentScopeBaseName(baseName);
     
      /*
       * Determine the packaging type (JAR or EAR, Standalone File not
       * supported by this deployer)
       */
     
      // Initialize to JAR
      PackagingType packagingType = PackagingType.JAR;
     
      // Determine if EAR
      boolean isEar = unit != unit.getTopLevel();
      if(isEar)
      {
         packagingType = PackagingType.EAR;
      }
     
      // Set type
      dSummary.setPackagingType(packagingType);
     
      // Return
      return dSummary;
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      String baseJndiName = getMappedName();
      if (baseJndiName == null)
         baseJndiName = determineJndiName();
     
      // Obtain the Deployment Summary
      DeploymentSummary dsummary = getJBossMetaData().getDeploymentSummary();
     
      // Initialize the Default JNDI Binding Policy
      DefaultJndiBindingPolicy policy = null;
     
      try
      {
         // Initialize a CL
         ClassLoader loader = null;
        
         // Fall back on TCL if there's no DeploymentSummary
         if (loader == null)
         {
            loader = Thread.currentThread().getContextClassLoader();
         }

         // Create Policy, falling back on the default policy if specified
         policy = this.createPolicy(loader, defaultPolicy == null ? null : defaultPolicy.getClass());
      }
      catch (Exception e)
      {
         throw new RuntimeException("Error in creating " + DefaultJndiBindingPolicy.class.getSimpleName(),e);
      }
     
      // If there's still no policy
      if (policy == null)
      {
         // Use the metadata default binding policy
         policy = new BasicJndiBindingPolicy();
      }

      if(dsummary==null)
      {
         dsummary = new DeploymentSummary();
      }
     
      // Derive the summary info from this metadata and deployment summary
      EjbDeploymentSummary ejbSummary = new EjbDeploymentSummary(this, dsummary);
      KnownInterfaceType ifaceType = KnownInterfaces.classifyInterface(iface);
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

  
   @Override
   public DeploymentSummary getDeploymentSummary()
   {
      DeploymentSummary summary = super.getDeploymentSummary();
      return summary;
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

   // Internal Helper Methods --------------------------------------------------------||
   // --------------------------------------------------------------------------------||

   protected EjbDeploymentSummary getEjbDeploymentSummary()
   {
      DeploymentSummary dsummary = getJBossMetaData().getDeploymentSummary();
      if(dsummary == null)
         dsummary = new DeploymentSummary();
      return new EjbDeploymentSummary(delegate, dsummary);
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      return KnownInterfaceType.BUSINESS_REMOTE;
   }
  
   private EjbDeploymentSummary getEjbDeploymentSummary()
   {
      DeploymentSummary dsummary = getJBossMetaData().getDeploymentSummary();
      if(dsummary == null)
         dsummary = new DeploymentSummary();
      return new EjbDeploymentSummary(this.delegate, dsummary);
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

   protected JBossEnterpriseBeanMetaData getEjbMetaData()
   {
      String name = super.getName();
      JBossMetaData jbossMetaData = new JBossMetaData();
      jbossMetaData.setEjbVersion("3.0");
      DeploymentSummary deploymentSummary = new DeploymentSummary();
      deploymentSummary.setDeploymentName(name);
      deploymentSummary.setDeploymentScopeBaseName("base");
      deploymentSummary.setPackagingType(PackagingType.EAR);
      jbossMetaData.setDeploymentSummary(deploymentSummary);
      JBossSessionBeanMetaData sbeanMD = new JBossSessionBeanMetaData();
      sbeanMD.setEjbName(name+"-ejb");
      sbeanMD.setEjbClass("org.jboss.ejb."+name);
      JBossEnterpriseBeansMetaData beans = new JBossEnterpriseBeansMetaData();
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

   protected JBossEnterpriseBeanMetaData getEntityMetaData()
   {
      String name = super.getName();
      JBossMetaData jbossMetaData = new JBossMetaData();
      jbossMetaData.setEjbVersion("3.0");
      DeploymentSummary deploymentSummary = new DeploymentSummary();
      deploymentSummary.setDeploymentName(name);
      deploymentSummary.setDeploymentScopeBaseName("base");
      deploymentSummary.setPackagingType(PackagingType.EAR);
      jbossMetaData.setDeploymentSummary(deploymentSummary);
      JBossEntityBeanMetaData sbeanMD = new JBossEntityBeanMetaData();
      sbeanMD.setEjbName(name+"-ejb");
      sbeanMD.setEjbClass("org.jboss.ejb."+name);
      sbeanMD.setJndiName(name+"-jndi-name");
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.jndipolicy.spi.DeploymentSummary

      return KnownInterfaceType.BUSINESS_REMOTE;
   }
  
   private EjbDeploymentSummary getEjbDeploymentSummary()
   {
      DeploymentSummary dsummary = getJBossMetaData().getDeploymentSummary();
      if(dsummary == null)
         dsummary = new DeploymentSummary();
      return new EjbDeploymentSummary(this.delegate, dsummary);
   }
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.