code: protected List getBeansToUpdate(Class beanType) {
          final ApplicationContext ac = getApplicationContext();
          final List listeners = new ArrayList();
  
          if( ac != null ) {
              if( logger.isDebugEnabled() )
                  logger.debug( "Constructing list of beans to notify; bean type=" + beanType.getName() );
  
              final Map map = ac.getBeansOfType( beanType, false, true );
  
              if( logger.isDebugEnabled() )
                  logger.debug( "bean map: " + map );
  
              listeners.addAll( map.values() );
              listeners.addAll( getNonSingletonListeners( beanType ) );
          }
  
          if( logger.isDebugEnabled() )
              logger.debug( "List of beans to notify:" + listeners );
  
          return listeners;
      }
docs: Construct the list of all the beans we need to update.
  @param beanType Type of bean to locate
  @return List of all beans to udpate.