Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.ObjectModelFactory


         URL wsddUrl = wsdd.toURL();
         try
         {
            InputStream is = wsddUrl.openStream();
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            ObjectModelFactory factory = new WebservicesFactory(wsddUrl);
            webservices = (WebservicesMetaData)unmarshaller.unmarshal(is, factory, null);
            is.close();
         }
         catch (Exception e)
         {
View Full Code Here


         // parse existing webservices descriptor
         InputStream wsXmlStream = new FileInputStream(wsXmlFile);
         try
         {
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            ObjectModelFactory factory = new WebservicesFactory(wsXmlFile.toURL());
            existingWebservices = (WebservicesMetaData)unmarshaller.unmarshal(wsXmlStream, factory, null);
         }
         catch (JBossXBException e)
         {
            throw new WSException("Could not unmarshal existing webservices descriptor: " + wsXmlFile, e);
View Full Code Here

         {
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            unmarshaller.setValidation(true);
            unmarshaller.setSchemaValidation(true);
            unmarshaller.setEntityResolver(new JBossWSEntityResolver());
            ObjectModelFactory factory = new HandlerChainsObjectFactory();
            handlerChainsMetaData = (UnifiedHandlerChainsMetaData)unmarshaller.unmarshal(is, factory, null);
         }
         finally
         {
            is.close();
View Full Code Here

   protected void parseMetaData(DeploymentInfo di, URL url) throws DeploymentException
   {
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         ObjectModelFactory factory = getObjectModelFactory();
         Object root = null;
         di.metaData = unmarshaller.unmarshal(url.toString(), factory, root);
      }
      catch (Throwable t)
      {
View Full Code Here

   public void loadConfiguration() throws Exception
   {
      if (inputStream != null)
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         ObjectModelFactory factory = new ProducerConfigurationFactory();
         configuration.set((ProducerConfiguration)unmarshaller.unmarshal(inputStream, factory, null));
      }

      configuration.compareAndSet(null, new ProducerConfigurationImpl());
   }
View Full Code Here

         {
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            unmarshaller.setValidation(true);
            unmarshaller.setSchemaValidation(true);
            unmarshaller.setEntityResolver(new JBossWSEntityResolver());
            ObjectModelFactory factory = new HandlerChainsObjectFactory();
            handlerChainsMetaData = (UnifiedHandlerChainsMetaData)unmarshaller.unmarshal(is, factory, null);
         }
         finally
         {
            is.close();
View Full Code Here

/*     */     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);
/*     */       }
/*     */
/*     */     }
View Full Code Here

/*      */       {
/*  246 */         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/*  247 */         unmarshaller.setValidation(true);
/*  248 */         unmarshaller.setSchemaValidation(true);
/*  249 */         unmarshaller.setEntityResolver(new JBossWSEntityResolver());
/*  250 */         ObjectModelFactory factory = new HandlerChainsObjectFactory();
/*  251 */         handlerChainsMetaData = (UnifiedHandlerChainsMetaData)unmarshaller.unmarshal(is, factory, null);
/*      */       }
/*      */       finally
/*      */       {
/*  255 */         is.close();
View Full Code Here

/* 101 */       URL wsddUrl = wsdd.toURL();
/*     */       try
/*     */       {
/* 104 */         InputStream is = wsddUrl.openStream();
/* 105 */         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 106 */         ObjectModelFactory factory = new WebservicesFactory(wsddUrl);
/* 107 */         webservices = (WebservicesMetaData)unmarshaller.unmarshal(is, factory, null);
/* 108 */         is.close();
/*     */       }
/*     */       catch (Exception e)
/*     */       {
View Full Code Here

/* 65 */     this.metaData = metaData;
/*    */   }
/*    */
/*    */   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());
View Full Code Here

TOP

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

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.