org.jboss.weld.bootstrap.api.Bootstrap.parse()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.jboss.weld.bootstrap.api.Bootstrap.parse()方法的一些代码示例,展示了Bootstrap.parse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bootstrap.parse()方法的具体详情如下:
包路径:org.jboss.weld.bootstrap.api.Bootstrap
类名称:Bootstrap
方法名:parse

Bootstrap.parse介绍

[英]Parse the specified URLs as a series of beans.xml file and merge the result. Duplicate entries are not removed.
[中]将指定的URL解析为一系列bean。xml文件并合并结果。重复条目不会被删除。

代码示例

代码示例来源:origin: weld/core

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: weld/core

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: org.jboss.weld.environment/weld-environment-common

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: org.jboss.weld.se/weld-se

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: weld/core

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

protected BeansXml parseBeansXml(URL beansXmlUrl) {
  return bootstrap.parse(beansXmlUrl);
}

代码示例来源:origin: org.jboss.jbossas/weld-int-deployer

public BeansXml getBeansXml()
{
 if (bootstrap == null)
 {
   throw new IllegalStateException("bootstrap must not be null");
 }
 return bootstrap.parse(environment.getWeldXml());
}

代码示例来源:origin: org.jboss.arquillian.container/arquillian-weld-ee-embedded-1.1

public static BeansXml prepareBeansXml(Bootstrap bootstrap, Collection<URL> beansXml, boolean merge) throws Exception
{
 if (merge)
 {
   switch(Version.getSeries())
   {
    case x_2: // Post Weld 2.0 API support merging the beans.xml files
      Method parseWithMerge = Bootstrap.class.getMethod("parse", new Class[] {Iterable.class, Boolean.TYPE});
      return (BeansXml) parseWithMerge.invoke(bootstrap, new Object[] {beansXml, true});
    case x_1_1: // Pre Weld 2.0 API require manually merging
      return removeDuplicate(bootstrap.parse(beansXml));
   }
 }
 return bootstrap.parse(beansXml);
}

代码示例来源:origin: org.jboss.jbossas/weld-int-deployer

public BeansXml getBeansXml()
{
 Collection<URL> urls = archive.getXmlURLs();
 if (urls == null || urls.isEmpty())
 {
   return BeansXml.EMPTY_BEANS_XML;
 }
 if (bootstrap != null)
   return bootstrap.parse(urls);
 else
   return parser.parse(urls);
}

代码示例来源:origin: org.jboss.arquillian.container/arquillian-weld-ee-embedded-1.1

public TestContainer(Collection<URL> beansXml, Collection<Class<?>> classes)
{
 this.bootstrap = new WeldBootstrap();
 this.deployment = forBeanDeploymentArchive(new BeanDeploymentArchiveImpl(bootstrap.parse(beansXml), classes));
 
}

代码示例来源:origin: org.jboss.arquillian.container/arquillian-weld-se-embedded-1.1

return bootstrap.parse(beansXmls);

代码示例来源:origin: org.jboss.weld.arquillian.container/arquillian-weld-ee-embedded-1.1

public TestContainer(Collection<URL> beansXml, Collection<Class<?>> classes)
{
 this.bootstrap = new WeldBootstrap();
 this.deployment = new FlatDeployment(new BeanDeploymentArchiveImpl(bootstrap.parse(beansXml), classes));
 
}

代码示例来源:origin: ops4j/org.ops4j.pax.exam2

BeansXml beansXml = bootstrap.parse(beansXmlUrl);
if (accept(beansXml)) {
  File webInfClasses = Servlets.getRealFile(servletContext, WEB_INF_CLASSES);

代码示例来源:origin: org.jboss.weld.arquillian.container/arquillian-weld-ee-embedded-1.1

public TestContainer(String beanArchiveId, Collection<URL> beansXml, Collection<Class<?>> classes)
{
 this.bootstrap = new WeldBootstrap();
 this.deployment = new FlatDeployment(new BeanDeploymentArchiveImpl(beanArchiveId, bootstrap.parse(beansXml), classes));
}

代码示例来源:origin: org.juzu/juzu-core

BeansXml xml = owner.bootstrap.parse(xmlURLs);

代码示例来源:origin: juzu/juzu

BeansXml xml = owner.bootstrap.parse(xmlURLs);

代码示例来源:origin: org.jboss.forge/forge-addon-container

public ModularWeldDeployment(Bootstrap bootstrap, ResourceLoader resourceLoader, ModuleScanResult scanResult)
{
 super(bootstrap);
 getServices().add(BootstrapConfiguration.class, new PerformanceTunedBootstrapConfiguration(resourceLoader));
 this.beanDeploymentArchive = new ImmutableBeanDeploymentArchive("classpath", scanResult.getDiscoveredClasses(),
      bootstrap.parse(scanResult.getDiscoveredResourceUrls()));
 this.beanDeploymentArchive.getServices().add(ResourceLoader.class, resourceLoader);
}

代码示例来源:origin: org.jboss.forge.furnace/container-cdi-impl

public ModularWeldDeployment(Bootstrap bootstrap, ResourceLoader resourceLoader, ModuleScanResult scanResult)
{
 super(bootstrap);
 getServices().add(BootstrapConfiguration.class, new PerformanceTunedBootstrapConfiguration(resourceLoader));
 this.beanDeploymentArchive = new ImmutableBeanDeploymentArchive("classpath", scanResult.getDiscoveredClasses(),
      bootstrap.parse(scanResult.getDiscoveredResourceUrls()));
 this.beanDeploymentArchive.getServices().add(ResourceLoader.class, resourceLoader);
}

相关文章