public void addReference ( final String propertyName , final BeanId ref ) { Preconditions . checkNotNull ( ref ) ; Preconditions . checkNotNull ( propertyName ) ; checkCircularReference ( ref ) ; List < BeanId > list = references . get ( propertyName ) ; if ( list == null ) { list = new ArrayList <> ( ) ; list . add ( ref ) ; references . put ( propertyName , list ) ; } else { list . add ( ref ) ; } }
Add a reference to a property on this bean .