public void addReference ( final String propertyName , final Collection < BeanId > refs ) { Preconditions . checkNotNull ( refs ) ; Preconditions . checkNotNull ( propertyName ) ; checkCircularReference ( refs . toArray ( new BeanId [ refs . size ( ) ] ) ) ; List < BeanId > list = references . get ( propertyName ) ; if ( list == null ) { list = new ArrayList <> ( ) ; list . addAll ( refs ) ; references . put ( propertyName , list ) ; } else { list . addAll ( refs ) ; } }
Add a list of references to a property on this bean .