Package org.jboss.resource.metadata

Examples of org.jboss.resource.metadata.RARDeploymentMetaData


      }
   }

   protected RARDeploymentMetaData mergeMetaData(VFSDeploymentUnit unit, Map<Class<?>, List<Object>> metadata) throws Exception
   {
      RARDeploymentMetaData deployment = new RARDeploymentMetaData();

      ConnectorMetaData cmd = getInstance(metadata, ConnectorMetaData.class);
      if (cmd != null)
         deployment.setConnectorMetaData(cmd);

      JBossRAMetaData jrmd = getInstance(metadata, JBossRAMetaData.class);
      if (jrmd != null)
         deployment.setRaXmlMetaData(jrmd);

      VFSDeploymentUnit parent = unit.getParent();
      String name = unit.getSimpleName();
      if (parent != null)
         name = parent.getSimpleName() + "#" + name;

      VirtualFile file = unit.getMetaDataFile(jeeSpecRarDD);
      deployment.getConnectorMetaData().setURL(file.toURL());
      metaDataRepository.addConnectorMetaData(name, deployment.getConnectorMetaData());

      return deployment;
   }
View Full Code Here


   protected void parseMetaData(DeploymentInfo di, URL url) throws org.jboss.deployment.DeploymentException
   {    
      super.parseMetaData(di, url);     
     
      InputStream is = di.localCl.getResourceAsStream(JBOSS_RA_XML);
      RARDeploymentMetaData rdmd = new RARDeploymentMetaData();
      rdmd.setConnectorMetaData((ConnectorMetaData)di.metaData);
      di.metaData = rdmd;
     
      try
      {
         if(is != null)
         {
           
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            ObjectModelFactory factory = getExtendedObjectModelFactory();
            JBossRAMetaData ramd = (JBossRAMetaData)unmarshaller.unmarshal(is, factory, (Object)null);
            rdmd.setRaXmlMetaData(ramd);
           
         }
     
      }
     
View Full Code Here

      }
   }

   protected RARDeploymentMetaData mergeMetaData(VFSDeploymentUnit unit, Map<Class<?>, List<Object>> metadata) throws Exception
   {
      RARDeploymentMetaData deployment = new RARDeploymentMetaData();

      ConnectorMetaData cmd = getInstance(metadata, ConnectorMetaData.class);
      if (cmd != null)
         deployment.setConnectorMetaData(cmd);

      JBossRAMetaData jrmd = getInstance(metadata, JBossRAMetaData.class);
      if (jrmd != null)
         deployment.setRaXmlMetaData(jrmd);

      VFSDeploymentUnit parent = unit.getParent();
      String name = unit.getSimpleName();
      if (parent != null)
         name = parent.getSimpleName() + "#" + name;

      VirtualFile file = unit.getMetaDataFile(jeeSpecRarDD);
      deployment.getConnectorMetaData().setURL(file.toURL());
      metaDataRepository.addConnectorMetaData(name, deployment.getConnectorMetaData());

      return deployment;
   }
View Full Code Here

/*     */     throws DeploymentException
/*     */   {
/*  76 */     super.parseMetaData(di, url);
/*     */
/*  78 */     InputStream is = di.localCl.getResourceAsStream("META-INF/jboss-ra.xml");
/*  79 */     RARDeploymentMetaData rdmd = new RARDeploymentMetaData();
/*  80 */     rdmd.setConnectorMetaData((ConnectorMetaData)di.metaData);
/*  81 */     di.metaData = rdmd;
/*     */     try
/*     */     {
/*  85 */       if (is != null)
/*     */       {
/*  88 */         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/*  89 */         ObjectModelFactory factory = getExtendedObjectModelFactory();
/*  90 */         JBossRAMetaData ramd = (JBossRAMetaData)unmarshaller.unmarshal(is, factory, (Object)null);
/*  91 */         rdmd.setRaXmlMetaData(ramd);
/*     */       }
/*     */
/*     */     }
/*     */     catch (Throwable e)
/*     */     {
View Full Code Here

TOP

Related Classes of org.jboss.resource.metadata.RARDeploymentMetaData

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.