Interface BeanCollector<T>


  • public interface BeanCollector<T>
    Implement this in order to cause spring to inject a set of beans into your spring bean (if any exist) which implement the interface you define (they will also have to implement AutoRegister)
    Author:
    Aaron Zeckoski (aaron@caret.cam.ac.uk)
    • Method Detail

      • setCollectedBeans

        void setCollectedBeans​(List<T> collectedBeans)
        This setter will be called automatically and the beans which are being collected for you will be placed in the List
        Parameters:
        collectedBeans - a list of all collected beans which were autoregistered
      • getCollectedType

        Class<T> getCollectedType()
        This allows the developer to set the type of the beans which they want collected
        Returns:
        the class type of the beans to collect