Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.UnmarshallerFactory


/* 137 */       VirtualFile applicationXml = getMetaDataFile(file, "META-INF/application.xml");
/* 138 */       VirtualFile jbossAppXml = getMetaDataFile(file, "META-INF/jboss-app.xml");
/*     */
/* 141 */       boolean scan = true;
/*     */
/* 143 */       UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/* 144 */       Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
/* 145 */       EarMetaData specMetaData = null;
/* 146 */       JBossAppMetaData appMetaData = null;
/* 147 */       if (applicationXml != null)
/*     */       {
/* 149 */         InputStream in = applicationXml.openStream();
View Full Code Here


/*    */   }
/*    */
/*    */   protected ConnectorMetaData getConnectorMetaData() throws Exception
/*    */   {
/* 70 */     ObjectModelFactory factory = new ResourceAdapterObjectModelFactory();
/* 71 */     UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/* 72 */     Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
/*    */
/* 74 */     URL rar = Thread.currentThread().getContextClassLoader().getResource(this.rarName);
/* 75 */     JarFile rarFile = new JarFile(rar.getFile());
/* 76 */     ZipEntry entry = rarFile.getEntry("META-INF/ra.xml");
/*    */
View Full Code Here

/*    */         try
/*    */         {
/* 64 */           VirtualFile jbossStructure = file.findChild("META-INF/jboss-structure.xml");
/* 65 */           this.log.trace("... context has a META-INF/jboss-structure.xml");
/* 66 */           URL url = jbossStructure.toURL();
/* 67 */           UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
/* 68 */           Unmarshaller unmarshaller = factory.newUnmarshaller();
/* 69 */           StructureMetaDataObjectFactory ofactory = new StructureMetaDataObjectFactory();
/* 70 */           unmarshaller.unmarshal(url.toString(), ofactory, metaData);
/* 71 */           isJBossStructure = true;
/*    */         }
/*    */         catch (IOException e)
View Full Code Here

/*  61 */       return null;
/*     */     }
/*  63 */     log.debug("found application-client.xml " + ddResource);
/*     */
/*  65 */     ApplicationClientDDObjectFactory factory = new ApplicationClientDDObjectFactory();
/*  66 */     UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*  67 */     Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
/*  68 */     unmarshaller.setEntityResolver(new JBossEntityResolver());
/*  69 */     unmarshaller.setNamespaceAware(true);
/*  70 */     unmarshaller.setSchemaValidation(true);
/*  71 */     unmarshaller.setValidation(true);
/*     */
View Full Code Here

/*      */
/*   71 */       if (dd == null) {
/*   72 */         dd = new EjbJarDD();
/*      */       }
/*   74 */       factory = new JBossDDObjectFactory(dd);
/*   75 */       UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*   76 */       unmarshaller = unmarshallerFactory.newUnmarshaller();
/*   77 */       unmarshaller.setEntityResolver(new JBossEntityResolver());
/*   78 */       unmarshaller.setNamespaceAware(true);
/*   79 */       unmarshaller.setSchemaValidation(true);
/*   80 */       unmarshaller.setValidation(true);
/*      */
View Full Code Here

/*  62 */       return dd;
/*     */     }
/*  64 */     log.debug("found jboss-client.xml " + ddResource);
/*     */
/*  66 */     JBossClientDDObjectFactory factory = new JBossClientDDObjectFactory(dd);
/*  67 */     UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*  68 */     Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
/*  69 */     unmarshaller.setEntityResolver(new JBossEntityResolver());
/*  70 */     unmarshaller.setNamespaceAware(true);
/*  71 */     unmarshaller.setSchemaValidation(true);
/*  72 */     unmarshaller.setValidation(true);
/*     */
View Full Code Here

/*   70 */     if (ddResource != null)
/*      */     {
/*   72 */       log.debug("found ejb-jar.xml " + ddResource);
/*      */
/*   74 */       factory = new EjbJarDDObjectFactory();
/*   75 */       UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*   76 */       unmarshaller = unmarshallerFactory.newUnmarshaller();
/*   77 */       unmarshaller.setEntityResolver(new JBossEntityResolver());
/*   78 */       unmarshaller.setNamespaceAware(true);
/*   79 */       unmarshaller.setSchemaValidation(true);
/*   80 */       unmarshaller.setValidation(true);
/*      */
View Full Code Here

               {
                  if (trace)
                     log.trace("... context has a META-INF/jboss-structure.xml");

                  URL url = jbossStructure.toURL();
                  UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
                  Unmarshaller unmarshaller = factory.newUnmarshaller();
                  StructureMetaDataObjectFactory ofactory = new StructureMetaDataObjectFactory();
                  unmarshaller.unmarshal(url.toString(), ofactory, structureContext.getMetaData());
                  mountChildren(structureContext);
                  isJBossStructure = true;
               }
View Full Code Here

   public static BootstrapMetaData parse(URL url)
   {
      if (url == null)
         throw new IllegalArgumentException("Null url");

      UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
      Unmarshaller unmarshaller = factory.newUnmarshaller();
      try
      {
         BootstrapMetaData result = (BootstrapMetaData) unmarshaller.unmarshal(url.toString(),
               new BootstrapSchemaBinding());
         if (result == null)
View Full Code Here

TOP

Related Classes of org.jboss.xb.binding.UnmarshallerFactory

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.