Package org.jboss.bootstrap

Examples of org.jboss.bootstrap.BootstrapMetaData


      if (url == null)
         url = new URL(configURL, BOOTSTRAP_XML_NAME);
      log.info("Starting Microcontainer, bootstrapURL=" + url);

      // Parse the bootstrap metadata
      BootstrapMetaData bootstrapMetaData = BootstrapParser.parse(url);
      List<String> bootstrapURLs = bootstrapMetaData.getBootstrapURLs();
      if (bootstrapURLs == null || bootstrapURLs.isEmpty())
         throw new IllegalStateException("No bootstrap urls in " + url);
      log.debug("BootstrapURLs=" + bootstrapURLs);
     
      // Create an xml deployer
View Full Code Here


      bootstrapModel.addParticle(urlParticle);
      bootstrapType.pushInterceptor(urlElement.getQName(), new DefaultElementInterceptor()
      {
         public void add(Object parent, Object child, QName name)
         {
            BootstrapMetaData bootstrap = (BootstrapMetaData) parent;
            String url = (String) child;
            List<String> bootstrapURLs = bootstrap.getBootstrapURLs();
            if (bootstrapURLs == null)
            {
               bootstrapURLs = new ArrayList<String>();
               bootstrap.setBootstrapURLs(bootstrapURLs);
            }
            bootstrapURLs.add(url);
         }
      });
     
View Full Code Here

     
      UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
      Unmarshaller unmarshaller = factory.newUnmarshaller();
      try
      {
         BootstrapMetaData result = (BootstrapMetaData) unmarshaller.unmarshal(url.toString(), new BootstrapSchemaBinding());
         if (result == null)
            throw new IllegalStateException("The bootsrap xml " + url + " is not well formed");
         return result;
      }
      catch (Exception e)
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.BootstrapMetaData

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.