jodd-petite/src/main/java/jodd/petite/PetiteContainer.java
protected Object getBean(final BeanReferences beanReferences) {
		final int total = beanReferences.size();

		for (int i = 0; i < total; i++) {
			String name = beanReferences.name(i);

			if (name != null) {
				Object bean = getBean(name);
				if (bean != null) {
					return bean;
				}
			}
		}
		return null;
	}
protected Object getBean(final BeanReferences beanReferences) {
		final int total = beanReferences.size();

		for (int i = 0; i < total; i++) {
			String name = beanReferences.name(i);

			if (name != null) {
				Object bean = getBean(name);
				if (bean != null) {
					return bean;
				}
			}
		}
		return null;
	}
protected Object getBean ( final BeanReferences beanReferences ) { final int total = beanReferences . size ( ) ; for ( int i = 0 ; i < total ; i ++ ) { String name = beanReferences . name ( i ) ; if ( name != null ) { Object bean = getBean ( name ) ; if ( bean != null ) { return bean ; } } } return null ; }
Returns Petite bean instance named as one of the provided names.
Returns {@code null} if bean is not found.
Returns Petite bean instance named as one of the provided names . Returns {