Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.UnmarshallerFactory.newUnmarshaller()


/*    */         {
/* 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


/*     */     }
/*  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

/*     */     }
/*  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

/*      */     {
/*   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

   {
      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
Copyright © 2018 www.massapi.com. 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.