/** * * @param bootstrap * @param archives * @return the "flat" bean deployment archive */ public static <T extends BeanDeploymentArchive> WeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrap, Iterable<T> archives) { BeansXml mergedBeansXml = BeansXmlParser.mergeExisting(archives, true); Set<String> beanClasses = new HashSet<String>(); for (BeanDeploymentArchive archive : archives) { beanClasses.addAll(archive.getBeanClasses()); } return new WeldBeanDeploymentArchive(ManagerObjectFactory.FLAT_BEAN_DEPLOYMENT_ID, beanClasses, mergedBeansXml); }
/** * * @param bootstrap * @param archives * @return the "flat" bean deployment archive */ public static <T extends BeanDeploymentArchive> WeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrap, Iterable<T> archives) { BeansXml mergedBeansXml = BeansXmlParser.mergeExisting(archives, true); Set<String> beanClasses = new HashSet<String>(); for (BeanDeploymentArchive archive : archives) { beanClasses.addAll(archive.getBeanClasses()); } return new WeldBeanDeploymentArchive(ManagerObjectFactory.FLAT_BEAN_DEPLOYMENT_ID, beanClasses, mergedBeansXml); }
/** * * @param bootstrap * @param archives * @return the "flat" bean deployment archive */ public static <T extends BeanDeploymentArchive> WeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrap, Iterable<T> archives) { BeansXml mergedBeansXml = BeansXmlParser.mergeExisting(archives, true); Set<String> beanClasses = new HashSet<String>(); for (BeanDeploymentArchive archive : archives) { beanClasses.addAll(archive.getBeanClasses()); } return new WeldBeanDeploymentArchive(ManagerObjectFactory.FLAT_BEAN_DEPLOYMENT_ID, beanClasses, mergedBeansXml); }
/** * * @param bootstrap * @param archives * @return the "flat" bean deployment archive */ public static <T extends BeanDeploymentArchive> WeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrap, Iterable<T> archives) { BeansXml mergedBeansXml = BeansXmlParser.mergeExisting(archives, true); Set<String> beanClasses = new HashSet<String>(); for (BeanDeploymentArchive archive : archives) { beanClasses.addAll(archive.getBeanClasses()); } return new WeldBeanDeploymentArchive(ManagerObjectFactory.FLAT_BEAN_DEPLOYMENT_ID, beanClasses, mergedBeansXml); }
/** * * @param bootstrap * @param archives * @return the "flat" bean deployment archive */ public static <T extends BeanDeploymentArchive> WeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrap, Iterable<T> archives) { BeansXml mergedBeansXml = BeansXmlParser.mergeExisting(archives, true); Set<String> beanClasses = new HashSet<String>(); for (BeanDeploymentArchive archive : archives) { beanClasses.addAll(archive.getBeanClasses()); } return new WeldBeanDeploymentArchive(ManagerObjectFactory.FLAT_BEAN_DEPLOYMENT_ID, beanClasses, mergedBeansXml); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, classes, getBeansXml()); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, beanClasses, knownClasses, getBeansXml()); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, beanClasses, knownClasses, getBeansXml()); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, beanClasses, knownClasses, getBeansXml()); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, beanClasses, knownClasses, getBeansXml()); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, beanClasses, knownClasses, getBeansXml()); }
/** * * @return the bean deployment archive */ public WeldBeanDeploymentArchive build() { Preconditions.checkArgumentNotNull(id, "id"); return new WeldBeanDeploymentArchive(id, beanClasses, knownClasses, getBeansXml()); }
/** * * @param bootstrap * @param archives * @return the "flat" bean deployment archive */ public static <T extends BeanDeploymentArchive> WeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrap, Iterable<T> archives) { BeansXml mergedBeansXml = new BeansXmlParser().mergeExisting(archives, true); Set<String> beanClasses = new HashSet<String>(); for (BeanDeploymentArchive archive : archives) { beanClasses.addAll(archive.getBeanClasses()); } return new WeldBeanDeploymentArchive(ManagerObjectFactory.FLAT_BEAN_DEPLOYMENT_ID, beanClasses, mergedBeansXml); }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }
/** * Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive. * * @param beanClass * @return the additional bean deployment archive */ protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive() { WeldBeanDeploymentArchive additionalBda = new WeldBeanDeploymentArchive(ADDITIONAL_BDA_ID, Collections.synchronizedSet(new HashSet<String>()), null); additionalBda.getServices().addAll(getServices().entrySet()); beanDeploymentArchives.add(additionalBda); setBeanDeploymentArchivesAccessibility(); return additionalBda; }