Package org.jboss.metadata.client.jboss

Examples of org.jboss.metadata.client.jboss.JBossClientMetaData


/*     */
/*  72 */       this.log.info("mainClass = " + mainClass);
/*     */
/*  74 */       if (hasAnnotations(mainClass))
/*     */       {
/*  77 */         dd = new JBossClientMetaData();
/*  78 */         unit.addAttachment(JBossClientMetaData.class, dd);
/*     */       }
/*     */     }
/*     */     catch (ClassNotFoundException e)
/*     */     {
View Full Code Here


/*    */
/*    */   protected void createMetaData(DeploymentUnit unit, String name, String suffix)
/*    */     throws DeploymentException
/*    */   {
/* 60 */     super.createMetaData(unit, name, suffix);
/* 61 */     JBossClientMetaData jbossMetaData = (JBossClientMetaData)getMetaData(unit, JBossClientMetaData.class.getName());
/* 62 */     ApplicationClientMetaData acmd = (ApplicationClientMetaData)unit.getAttachment(ApplicationClientMetaData.class);
/*    */
/* 64 */     if ((jbossMetaData == null) && (acmd == null)) {
/* 65 */       return;
/*    */     }
/*    */
/* 68 */     if (jbossMetaData == null)
/*    */     {
/* 70 */       jbossMetaData = new JBossClientMetaData();
/*    */     }
/*    */
/* 73 */     JBossClientMetaData metaData = new JBossClientMetaData();
/* 74 */     metaData.merge(jbossMetaData, acmd, true);
/*    */
/* 76 */     unit.getTransientManagedObjects().addAttachment(JBossClientMetaData.class.getName(), metaData, getOutput());
/*    */
/* 79 */     unit.getTransientManagedObjects().addAttachment("Raw" + JBossClientMetaData.class.getName(), jbossMetaData, getOutput());
/*    */   }
View Full Code Here

/*     */   public void internalDeploy(DeploymentUnit unit)
/*     */     throws DeploymentException
/*     */   {
/*  95 */     JBossMetaData ejbMetaData = (JBossMetaData)unit.getAttachment(JBossMetaData.class);
/*  96 */     JBossWebMetaData webMetaData = (JBossWebMetaData)unit.getAttachment(JBossWebMetaData.class);
/*  97 */     JBossClientMetaData clientMetaData = (JBossClientMetaData)unit.getAttachment(JBossClientMetaData.class);
/*  98 */     if ((ejbMetaData == null) && (webMetaData == null) && (clientMetaData == null)) {
/*  99 */       return;
/*     */     }
/*     */
/* 102 */     dump(unit);
/* 103 */     if (ejbMetaData != null)
/*     */     {
/* 105 */       JBossEnterpriseBeansMetaData beans = ejbMetaData.getEnterpriseBeans();
/*     */
/* 107 */       mapEjbs(unit.getRelativePath(), beans);
/*     */
/* 109 */       List unresolvedPaths = resolve(unit, beans);
/* 110 */       if ((unresolvedPaths != null) && (unresolvedPaths.size() > 0))
/* 111 */         log.warn("Unresolved references exist in JBossMetaData: " + unresolvedPaths);
/*     */     }
/* 113 */     if (webMetaData != null)
/*     */     {
/* 116 */       List unresolvedPaths = resolve(unit, webMetaData.getJndiEnvironmentRefsGroup());
/* 117 */       if ((unresolvedPaths != null) && (unresolvedPaths.size() > 0))
/* 118 */         log.warn("Unresolved references exist in JBossWebMetaData: " + unresolvedPaths);
/*     */     }
/* 120 */     if (clientMetaData != null)
/*     */     {
/* 123 */       List unresolvedPaths = resolve(unit, clientMetaData.getJndiEnvironmentRefsGroup());
/* 124 */       if ((unresolvedPaths != null) && (unresolvedPaths.size() > 0))
/* 125 */         log.warn("Unresolved references exist in JBossClientMetaData: " + unresolvedPaths);
/*     */     }
/*     */   }
View Full Code Here

/*     */   public static JBossClientMetaData loadXML(String applicationClientName)
/*     */     throws NamingException
/*     */   {
/*  95 */     log.warn("FIXME: using an unsupported hack to get metadata");
/*  96 */     InitialContext ctx = new InitialContext();
/*  97 */     JBossClientMetaData metaData = (JBossClientMetaData)ctx.lookup(applicationClientName + "/metaData");
/*  98 */     return metaData;
/*     */   }
View Full Code Here

/* 127 */       URL appXmlURL = mainClass.getClassLoader().getResource("META-INF/application-client.xml");
/* 128 */       if (appXmlURL == null) {
/* 129 */         throw new RuntimeException("Can't find META-INF/application-client.xml");
/*     */       }
/*     */
/* 132 */       JBossClientMetaData xml = null;
/*     */
/* 135 */       throw new RuntimeException("NYI");
/*     */     }
/*     */     catch (Exception e)
/*     */     {
View Full Code Here

/*     */   }
/*     */
/*     */   public void launch(String mainClassName, String clientName, String[] args)
/*     */     throws Throwable
/*     */   {
/* 168 */     JBossClientMetaData xml = loadXML(clientName);
/* 169 */     launch(xml, mainClassName, clientName, args);
/*     */   }
View Full Code Here

/* 114 */     if (jbossMetaData != null)
/* 115 */       isComplete &= jbossMetaData.isMetadataComplete();
/* 116 */     JBossWebMetaData jbossWebMetaData = (JBossWebMetaData)unit.getAttachment(JBossWebMetaData.class);
/* 117 */     if (jbossWebMetaData != null)
/* 118 */       isComplete &= jbossWebMetaData.isMetadataComplete();
/* 119 */     JBossClientMetaData jbossClientMetaData = (JBossClientMetaData)unit.getAttachment(JBossClientMetaData.class);
/* 120 */     if (jbossClientMetaData != null)
/* 121 */       isComplete &= jbossClientMetaData.isMetadataComplete();
/* 122 */     if (isComplete) {
/* 123 */       return;
/*     */     }
/* 125 */     VirtualFile root = unit.getRoot();
/* 126 */     boolean isLeaf = true;
View Full Code Here

    */
   public static JBossClientMetaData loadXML(String applicationClientName) throws NamingException
   {
      log.warn("FIXME: using an unsupported hack to get metadata");
      InitialContext ctx = new InitialContext();
      JBossClientMetaData metaData = (JBossClientMetaData) ctx.lookup(applicationClientName + "/metaData");
      return metaData;
   }
View Full Code Here

      throws Throwable
   {
      // Set the RMIClassLoaderSpi implementation to JBossRMIClassLoader
      System.setProperty("java.rmi.server.RMIClassLoaderSpi", JBossRMIClassLoader.class.getName());
      // This is loaded lazily via a jndi dependency
      JBossClientMetaData xml = null;
      List<String> cp = loadClassPath(clientName);
      launch(xml, cp, mainClassName, clientName, args, jndiEnv);
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.client.jboss.JBossClientMetaData

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.