protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
protected BeansXml parseBeansXml(URL beansXmlUrl) { return bootstrap.parse(beansXmlUrl); }
public BeansXml getBeansXml() { if (bootstrap == null) { throw new IllegalStateException("bootstrap must not be null"); } return bootstrap.parse(environment.getWeldXml()); }
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); }
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); }
public TestContainer(Collection<URL> beansXml, Collection<Class<?>> classes) { this.bootstrap = new WeldBootstrap(); this.deployment = forBeanDeploymentArchive(new BeanDeploymentArchiveImpl(bootstrap.parse(beansXml), classes)); }
return bootstrap.parse(beansXmls);
public TestContainer(Collection<URL> beansXml, Collection<Class<?>> classes) { this.bootstrap = new WeldBootstrap(); this.deployment = new FlatDeployment(new BeanDeploymentArchiveImpl(bootstrap.parse(beansXml), classes)); }
BeansXml beansXml = bootstrap.parse(beansXmlUrl); if (accept(beansXml)) { File webInfClasses = Servlets.getRealFile(servletContext, WEB_INF_CLASSES);
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)); }
BeansXml xml = owner.bootstrap.parse(xmlURLs);
BeansXml xml = owner.bootstrap.parse(xmlURLs);
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); }
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); }