/** * Iterate over agents and find the one containing the class by name * * @param className * @return */ public static String getArchiveByClassName(String className){ for(BeanClassRefreshAgent agent: INSTANCES.values()) { if(agent.getDeploymentArchive().getBeanClasses().contains(className)) { return agent.getArchivePath(); } } return null; } }
Iterator<String> iterator = target.getBeanClasses().iterator(); if (iterator.hasNext()) { Class<?> clazz = Reflections.loadClass(iterator.next(), module.getClassLoader());
/** * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor * are Session bean definitions. * * @return all classes found in the bean deployment archive, empty if no classes are present * @since 3.0 */ default Collection<String> getKnownClasses() { return getBeanClasses(); }
/** * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor * are Session bean definitions. * * @return all classes found in the bean deployment archive, empty if no classes are present * @since 3.0 */ default Collection<String> getKnownClasses() { return getBeanClasses(); }
/** * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor * are Session bean definitions. * * @return all classes found in the bean deployment archive, empty if no classes are present * @since 3.0 */ default Collection<String> getKnownClasses() { return getBeanClasses(); }
/** * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor * are Session bean definitions. * * @return all classes found in the bean deployment archive, empty if no classes are present * @since 3.0 */ default Collection<String> getKnownClasses() { return getBeanClasses(); }
/** * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor * are Session bean definitions. * * @return all classes found in the bean deployment archive, empty if no classes are present * @since 3.0 */ default Collection<String> getKnownClasses() { return getBeanClasses(); }
/** * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor * are Session bean definitions. * * @return all classes found in the bean deployment archive, empty if no classes are present * @since 3.0 */ default Collection<String> getKnownClasses() { return getBeanClasses(); }
public Collection<String> getBeanClasses() { return delegate().getBeanClasses(); }
public Collection<String> getBeanClasses() { return delegate().getBeanClasses(); }
public Collection<String> getBeanClasses() { return delegate().getBeanClasses(); }
public Collection<String> getBeanClasses() { return delegate().getBeanClasses(); }
public Collection<String> getBeanClasses() { return delegate().getBeanClasses(); }
public Collection<String> getBeanClasses() { return delegate().getBeanClasses(); }
/** * * @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); }
/** * * @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); }