title: Spring bean scope ''prototype" and scheduled method memory leak
body: <pre><code>    @Component
      @Scope("prototype")
      public class MessageHandller {
        .........................
       private static ConcurrentMap&lt;String, Boolean&gt; someObjectList = new ConcurrentHashMap&lt;&gt;(); 
        ....................................
         @Scheduled(fixedDelayString = "60000")
         public static void doSomething() {
            if(***) {
               someObjectList.add(**);
            } else {
               someObjectList.remove(**);
            }
  
         }
      }
  </code></pre>
  
  <p>So let say I have Class MessageHandller  which is Spring Bean with Scope of Prototype. In this Class I have Scheduled method "doSomething" which runs every 60000 mili seconds.</p>
  
  <p>I think Scheduled method may cause memory leak, because it will always hold refference to MessageHandler class which is "prototype" scope, which means GC will never collect it? Can someone explain if I'am wrong?</p>