Code example for Set

Methods: iterator

0
	} 
 
	public static Object getManagedBeanReference(Class<?> clazz) { 
		Set<Bean<?>> beans = _beanManager.getBeans(clazz); 
 
		Iterator<Bean<?>> iterator = beans.iterator(); 
 
		Bean<?> bean = iterator.next(); 
 
		CreationalContext<?> creationalContext = 
			_beanManager.createCreationalContext(bean); 
 
		return _beanManager.getReference(bean, clazz, creationalContext); 
	} 
 
	public static void setBeanManager(BeanManager beanManager) { 
		_beanManager = beanManager; 
	} 
 
	private static BeanManager _beanManager; 
Experience pair programming with AI  Get Codota for Java