Package org.jboss.metadata.ejb.jboss

Examples of org.jboss.metadata.ejb.jboss.JBossMetaData


      setStage(DeploymentStages.POST_CLASSLOADER);
   }

   public void deploy(DeploymentUnit unit, EjbJarMetaData deployment) throws DeploymentException
   {
      JBossMetaData jbmd = new JBossMetaData();
      jbmd.merge(null, deployment);
      unit.addAttachment(JBossMetaData.class, jbmd);
   }
View Full Code Here


      setName("jboss.xml");
   }

   protected JBossMetaData parse(VFSDeploymentUnit unit, VirtualFile file, JBossMetaData root) throws Exception
   {
      return new JBossMetaData();
   }
View Full Code Here

      setStage(DeploymentStages.POST_PARSE);
   }

   public void deploy(DeploymentUnit unit, EjbJarMetaData deployment) throws DeploymentException
   {
      JBossMetaData jbmd = new JBossMetaData();
      jbmd.merge(null, deployment);
      unit.addAttachment(JBossMetaData.class, jbmd);
   }
View Full Code Here

   {
      // Ensure it's an EJB3 DU (by looking for the processed metadata)
      List<String> ejbNames = new ArrayList<String>();
      if (du.getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class) != null && du.getAttachment(JBossMetaData.class).isEJB3x())
      {
         JBossMetaData jBossMetaData = du.getAttachment(JBossMetaData.class);
         for (JBossEnterpriseBeanMetaData enterpriseBeanMetaData : jBossMetaData.getEnterpriseBeans())
         {
            ejbNames.add(enterpriseBeanMetaData.getEjbName());
         }
      }
View Full Code Here

   protected void discoverEjbs(DeploymentUnit du)
   {
      // Ensure it's an EJB3 DU (by looking for the processed metadata)
      if (du.getAttachment(AttachmentNames.PROCESSED_METADATA, JBossMetaData.class) != null && du.getAttachment(JBossMetaData.class).isEJB3x())
      {
         JBossMetaData jBossMetaData = du.getAttachment(JBossMetaData.class);
         for (JBossEnterpriseBeanMetaData enterpriseBeanMetaData : jBossMetaData.getEnterpriseBeans())
         {
            if (enterpriseBeanMetaData.isSession() && enterpriseBeanMetaData instanceof JBossSessionBean31MetaData)
            {
               JBossSessionBean31MetaData sessionBeanMetaData = (JBossSessionBean31MetaData) enterpriseBeanMetaData;
               EjbDescriptor<?> ejbDescriptor = new JBossSessionBean31DescriptorAdaptor<Object>(sessionBeanMetaData, du, resolver);
View Full Code Here

      war.parent = parent;
      war.relativePath = SIMPLE_DU_WAR_PATH;
      ModuleMetaData warmod = appmd.getModule(SIMPLE_DU_WAR_PATH);
     
      DUIH jar = new DUIH();
      jar.attachments.put(JBossMetaData.class, new JBossMetaData());
      jar.parent = parent;
      jar.relativePath = SIMPLE_DU_JAR_PATH;
      jar.simpleName = SIMPLE_DU_JAR;
      ModuleMetaData jarmod = new ModuleMetaData();
      jarmod.setName(SIMPLE_DU_JAR_PATH);
View Full Code Here

   private static DUIH getMultiAttachmentDUIH()
   {
      DUIH duih = new DUIH();
      JBossWebMetaData webmd = new JBossWebMetaData();
      duih.attachments.put(JBossWebMetaData.class, webmd);
      JBossMetaData ejbmd = new JBossMetaData();
      duih.attachments.put(JBossMetaData.class, ejbmd);
      JBossClientMetaData clientmd = new JBossClientMetaData();
      duih.attachments.put(JBossClientMetaData.class, clientmd);
//      NamedModule jcamd = getJCAMetaData();
//      duih.attachments.put(jcamd.getClass(), jcamd);
View Full Code Here

      return sb.toString();
   }

   private boolean isSharedENC(org.jboss.deployers.structure.spi.DeploymentUnit deploymentUnit)
   {
      JBossMetaData jbossMetaData = deploymentUnit.getAttachment(JBossMetaData.class);
      JBossWebMetaData jbosswebMetaData = deploymentUnit.getAttachment(JBossWebMetaData.class);
      if (jbossMetaData != null && jbosswebMetaData != null)
      {
         return true;
      }
View Full Code Here

      if (this.isActivated())
      {
         return;
      }
      // get the metadata
      JBossMetaData metadata = unit.getAttachment(JBossMetaData.class);
      if (metadata.isEJB3x() == false)
      {
         return;
      }
     
      // activate the on-demand profile
View Full Code Here

   /*
    * Some hacks to counter problems.
    */
   private boolean isReallyAnEjbDeployment(DeploymentUnit unit)
   {
      JBossMetaData metaData = unit.getAttachment(JBossMetaData.class);
      // JBMETA-69
      if(metaData.getEnterpriseBeans() == null || metaData.getEnterpriseBeans().size() == 0)
         return false;
      // JBMETA-70
      // The chance of a persistence unit being defined with couple of EJB entity beans is
      // pretty slim.
      for(JBossEnterpriseBeanMetaData bean : metaData.getEnterpriseBeans())
      {
         if(!(bean instanceof JBossEntityBeanMetaData))
            return true;
      }
      return false;
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.jboss.JBossMetaData

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.