title: Spring config file with same bean and different properties
body: <p>I have a bean which I use to load cache. I give the key for cache from Spring injection. I am duplicating the same bean just for the property and Spring is creating multiple instances of same bean. Is there anyway I can use one instance of the bean?   </p>
  
  <pre><code>&lt;aop:config&gt;
      &lt;aop:pointcut id="terminalPointcut"
          expression="execution(* *..TerminalDao.getTerminals())" /&gt;
      &lt;aop:pointcut id="miscPointcut"
          expression="execution(* *..MiscDao.getMiscTableList(*))" /&gt;
      &lt;aop:pointcut id="errorPointcut"
          expression="execution(* *..ErrorDao.getErrorList())" /&gt;
      &lt;aop:advisor id="terminalCacheLoaderAdvisor"
          advice-ref="terminalCacheLoaderAdvice" pointcut-ref="terminalPointcut" /&gt;
      &lt;aop:advisor id="miscCacheLoaderAdvisor"
          advice-ref="miscCacheLoaderAdvice" pointcut-ref="miscPointcut" /&gt;
      &lt;aop:advisor id="errorCdDetailCacheLoaderAdvisor"
          advice-ref="errorCacheLoaderAdvice" pointcut-ref="errorPointcut" /&gt;
  &lt;/aop:config&gt;
  </code></pre>
  
  <p>
              
              
      </p>
  
  <pre><code>&lt;bean id="miscCacheLoaderAdvice" class="com.temp.ehCache.interceptor.CacheLoader"&gt;
          &lt;property name="cacheManager" ref="simpleCacheManager" /&gt;   
          &lt;property name="cache_data_key" value="MISC_DATA_KEY" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="errorCacheLoaderAdvice" class="com.temp.ehCache.interceptor.CacheLoader"&gt;
          &lt;property name="cacheManager" ref="simpleCacheManager" /&gt;   
          &lt;property name="cache_data_key" value="ERROR_DATA_KEY" /&gt;
  &lt;/bean&gt; 
  </code></pre>