Package org.jboss.metadata.ejb.jboss.jndipolicy.spi

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


   }

   private static EjbDeploymentSummary getUnitSummary(DeploymentUnit unit, JBossEnterpriseBeanMetaData beanMD)
   {
      ClassLoader loader = unit.getClassLoader();
      EjbDeploymentSummary summary = new EjbDeploymentSummary();
      summary.setBeanMD(beanMD);
      summary.setBeanClassName(beanMD.getEjbClass());
      summary.setDeploymentName(unit.getShortName());
      String baseName = unit.getRootFile().getName();
      summary.setDeploymentScopeBaseName(baseName);
      summary.setEjbName(beanMD.getEjbName());
      summary.setLoader(loader);
      summary.setLocal(beanMD.isMessageDriven());
      if(beanMD instanceof JBossSessionBeanMetaData)
      {
         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
         summary.setStateful(sbeanMD.isStateful());
      }
      summary.setService(beanMD.isService());
      return summary;
   }  
View Full Code Here


            String jndiName = bean.determineJndiName();
            ContainerDependencyMetaData cdmd = new ContainerDependencyMetaData(jndiName, bean.getEjbName(), vfsPath);
            cdmd.setEjb3X(ejbMetaData.isEJB3x());
            // TODO, this is a mess that should be simply from the metadata
            //ClassLoader loader = unit.getClassLoader();
            EjbDeploymentSummary unitSummary = getEjbDeploymentSummary(unit, bean);
            cdmd.setUnitSummary(unitSummary);

            endpointMap.put(ejbCompID, cdmd);
            // debug info for the mappings each ejb has
            ArrayList<String> mappings = new ArrayList<String>();
View Full Code Here

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

         // Log
         log.debug("JNDI name has not been explicitly set for EJB " + container.getEjbName() + ", interface "
               + businessInterface.getName());

         // Set JNDI name
         EjbDeploymentSummary summary = ProxyFactoryHelper.getDeploymentSummaryFromContainer(container);
         summary.setHome(isHome);
         summary.setLocal(isLocal);
         jndiName = ProxyFactoryHelper.getJndiBindingPolicy(container).getJndiName(summary);
      }

      // Return
      return jndiName;
View Full Code Here

   private static void checkForJndiNamingConflict(EJBContainer container)
   {
      if (container.getAnnotation(Local.class) != null)
      {
         EjbDeploymentSummary summary = ProxyFactoryHelper.getDeploymentSummaryFromContainer(container);
         String localJndiName = ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultLocalJndiName(summary);
         String remoteJndiName = ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultRemoteJndiName(summary);
         String ejbName = container.getEjbName();
         if ((localJndiName.equals(remoteJndiName)))
         {
View Full Code Here

   {
      // Obtain JNDI Binding Policy
      DefaultJndiBindingPolicy policy = ProxyFactoryHelper.getJndiBindingPolicy(container);

      // Obtain Deployment Summary
      EjbDeploymentSummary summary = ProxyFactoryHelper.getDeploymentSummaryFromContainer(container);

      // Return the policy's default remote name for this summary
      return policy.getDefaultRemoteJndiName(summary);
   }
View Full Code Here

   }

   private static EjbDeploymentSummary getDeploymentSummaryFromContainer(EJBContainer container)
   {
      // Construct Deployment Summary
      EjbDeploymentSummary summary = new EjbDeploymentSummary();
      summary.setEjbName(container.getEjbName());
      summary.setService(container instanceof ServiceContainer);
      summary.setStateful(container instanceof StatefulContainer);
      summary.setDeploymentName(container.getDeployment().getName());
      summary.setBeanClassName(container.getBeanClass().getName());
      DeploymentScope scope = container.getDeployment().getEar();
      if (scope != null)
      {
         summary.setDeploymentScopeBaseName(scope.getBaseName());
      }

      // Return
      return summary;
   }
View Full Code Here

      {
         dsummary = new DeploymentSummary();
      }
     
      // Derive the summary info from this metadata and deployment summary
      EjbDeploymentSummary ejbSummary = new EjbDeploymentSummary(this, dsummary);
      KnownInterfaceType ifaceType = KnownInterfaces.classifyInterface(iface);
      // Need to compare iface against the metadata local-home/home & business locals/remotes
      if (this.isSession() && ifaceType == KnownInterfaceType.UNKNOWN)
      {
         JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) this;
View Full Code Here

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

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

TOP

Related Classes of org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary

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.