Package org.jboss.bootstrap.spi.metadata

Examples of org.jboss.bootstrap.spi.metadata.BootstrapMetaData


      final URL homeUrl = config.getBootstrapHome();
      final URL bootstrapUrl = config.getBootstrapUrl();
      log.info("Starting Microcontainer, Main bootstrapURL=" + bootstrapUrl);

      // Parse the bootstrap metadata
      final BootstrapMetaData bootstrapMetaData = BootstrapParser.parse(bootstrapUrl);
      List<String> bootstrapURLs = bootstrapMetaData.getBootstrapURLs();
      if (bootstrapURLs == null)
      {
         bootstrapURLs = Collections.emptyList();
      }
      if (bootstrapURLs.isEmpty())
View Full Code Here


      final URL homeUrl = config.getBootstrapHome();
      final URL bootstrapUrl = config.getBootstrapUrl();
      log.info("Starting Microcontainer, Main bootstrapURL=" + bootstrapUrl);

      // Parse the bootstrap metadata
      final BootstrapMetaData bootstrapMetaData = BootstrapParser.parse(bootstrapUrl);
      List<String> bootstrapURLs = bootstrapMetaData.getBootstrapURLs();
      if (bootstrapURLs == null)
      {
         bootstrapURLs = Collections.emptyList();
      }
      if (bootstrapURLs.isEmpty())
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;
      }
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.spi.metadata.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.